summaryrefslogtreecommitdiff
path: root/src/mods/html/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2010-11-21 16:18:43 +0000
committerPaul Buetow <paul@buetow.org>2010-11-21 16:18:43 +0000
commit7fa0ff180b35e7fef218f0b9113d7e0f3f9b54a8 (patch)
treee45ffca8cf18ac5d00a2928229d8a717a3718669 /src/mods/html/Makefile
parentc155ee9e0f133aafff70984f5b09c45efc62ca5a (diff)
parent55b08bd93257d32df76efc4e8e3f49311c39ee82 (diff)
Diffstat (limited to 'src/mods/html/Makefile')
-rw-r--r--src/mods/html/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mods/html/Makefile b/src/mods/html/Makefile
new file mode 100644
index 0000000..c17d7f6
--- /dev/null
+++ b/src/mods/html/Makefile
@@ -0,0 +1,25 @@
+SRCS=$(shell find ./ -name '*.cpp')
+MODS=$(addprefix ../../../mods/html/, $(SRCS:.cpp=.so))
+CXX=g++
+CXXFLAGS=-fno-inline -fno-default-inline -g -O2 ${EFLAGS}
+all: mods
+${MODS}:
+ @if ! test -d `dirname $@`; then mkdir -p `dirname $@`; fi
+ @${CXX} ${CXXGLAGS} -fPIC -shared -s -o $@ ` \
+ echo $(notdir $@) | sed s/.so/.cpp/`
+ @echo "mods:html:`basename $@ | sed s/\.so// | sed s/yc_//` (` \
+ du -hs $@ | awk '{ print $$1 }'`) "
+infotext:
+ @echo "===> Compiling html modules"
+mods: infotext ${MODS}
+ @echo "===> Num of html modules: `ls \
+ ../../../mods/html/*.so | wc -l | sed 's/ //g;'`"
+clean:
+ @echo "===> Cleaning html modules"
+ @if test -d ../../../mods/html; then rm -Rf ../../../mods/html; fi
+../../../mods/html/./yc_admin.so: yc_admin.cpp
+../../../mods/html/./yc_colors.so: yc_colors.cpp
+../../../mods/html/./yc_help.so: yc_help.cpp
+../../../mods/html/./yc_loggedin.so: yc_loggedin.cpp
+../../../mods/html/./yc_options.so: yc_options.cpp
+../../../mods/html/./yc_register.so: yc_register.cpp