diff options
| author | Paul Buetow <paul@buetow.org> | 2009-01-27 23:25:11 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2009-01-27 23:25:11 +0000 |
| commit | 19f9940dc968afae01b54377ee23ec59069c9646 (patch) | |
| tree | f3aeb664f44aec07de640bce0326ec1b5e478c51 /0.8/src/mods/Makefile.mods.in | |
| parent | 1c8047e99b6a7199e447bb5a70438837cc5f7890 (diff) | |
Diffstat (limited to '0.8/src/mods/Makefile.mods.in')
| -rw-r--r-- | 0.8/src/mods/Makefile.mods.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/0.8/src/mods/Makefile.mods.in b/0.8/src/mods/Makefile.mods.in new file mode 100644 index 0000000..ca3c365 --- /dev/null +++ b/0.8/src/mods/Makefile.mods.in @@ -0,0 +1,19 @@ +SRCS=$(shell find ./ -name '*.cpp') +MODS=$(addprefix ../../../mods/@CATEGORY@/, $(SRCS:.cpp=.so)) +CXX=@CXX@ +CXXFLAGS=@CXXFLAGS@ +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:@CATEGORY@:`basename $@ | sed s/\.so// | sed s/yc_//` (` \ + du -hs $@ | awk '{ print $$1 }'`) " +infotext: + @echo "===> Compiling @CATEGORY@ modules" +mods: infotext ${MODS} + @echo "===> Num of @CATEGORY@ modules: `ls \ + ../../../mods/@CATEGORY@/*.so | wc -l | sed 's/ //g;'`" +clean: + @echo "===> Cleaning @CATEGORY@ modules" + @if test -d ../../../mods/@CATEGORY@; then rm -Rf ../../../mods/@CATEGORY@; fi |
