diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:41 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:41 +0200 |
| commit | 9cd3ccffd5372dfde3af478e3f832f18db4be3f1 (patch) | |
| tree | 631c295a4a4a16b57502b847626763a279bf6df7 /ychat-0.7.5/src/mods/html/Makefile | |
| parent | 13aaf70af703748fe096e0664c305cd202637ad2 (diff) | |
tagging tags
Diffstat (limited to 'ychat-0.7.5/src/mods/html/Makefile')
| -rw-r--r-- | ychat-0.7.5/src/mods/html/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ychat-0.7.5/src/mods/html/Makefile b/ychat-0.7.5/src/mods/html/Makefile new file mode 100644 index 0000000..98deaf7 --- /dev/null +++ b/ychat-0.7.5/src/mods/html/Makefile @@ -0,0 +1,25 @@ +SRCS=yc_admin.cpp yc_colors.cpp yc_help.cpp yc_loggedin.cpp yc_options.cpp yc_register.cpp +MODS=$(addprefix ../../../mods/html/, $(SRCS:.cpp=.so)) +CC=g++ +INCLUDES=`cat ../../includes.add` +CFLAGS=`cat ../cflags.add` +all: mods +$(MODS): + @echo -n "Compiling html module `basename $@` " + @if ! test -d `dirname $@`; then mkdir -p `dirname $@`; fi + @$(CC) $(CFLAGS) $(INCLUDES) -shared -s -o $@ `echo $(notdir $@) | sed s/.so/.cpp/` + @du -hc $@ | tail -n 1 | sed s/total// | sed "s/ //g" +infotext: + @echo Compiling html modules +mods: infotext $(MODS) + @echo "Num of html modules: " + @ls ../../../mods/html/*.so | wc -l +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 |
