diff options
| author | Paul Buetow <paul@buetow.org> | 2010-11-21 16:18:43 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2010-11-21 16:18:43 +0000 |
| commit | 7fa0ff180b35e7fef218f0b9113d7e0f3f9b54a8 (patch) | |
| tree | e45ffca8cf18ac5d00a2928229d8a717a3718669 /src/mods/Makefile.mods.in | |
| parent | c155ee9e0f133aafff70984f5b09c45efc62ca5a (diff) | |
| parent | 55b08bd93257d32df76efc4e8e3f49311c39ee82 (diff) | |
Diffstat (limited to 'src/mods/Makefile.mods.in')
| -rw-r--r-- | src/mods/Makefile.mods.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mods/Makefile.mods.in b/src/mods/Makefile.mods.in new file mode 100644 index 0000000..ca3c365 --- /dev/null +++ b/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 |
