summaryrefslogtreecommitdiff
path: root/src/mods/commands/Makefile.in
blob: ce8c00fac9e40569492de7f195649f0a101e8577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
MODS=$(addprefix ../../../mods/commands/, $(SRCS:.cpp=.so))
CC=COMPILER
INCLUDES=`cat ../../includes.add`
CFLAGS=`cat ../cflags.add`
all: mods
$(MODS): 
	@echo -n "Compiling command 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 command modules
mods:	infotext $(MODS) 
	@echo "Num of command modules: "
	@ls ../../../mods/commands/*.so | wc -l
clean:
	@echo Cleaning command modules
	@if test -d ../../../mods/commands; then rm -Rf ../../../mods/commands; fi