|
|
@ -17,7 +17,7 @@ SOURCE = $(wildcard *.cpp) |
|
|
|
DEPENDS = $(subst .cpp,.d,$(SOURCE))
|
|
|
|
DEPENDS = $(subst .cpp,.d,$(SOURCE))
|
|
|
|
OBJECTS = $(subst .cpp,.o,$(SOURCE))
|
|
|
|
OBJECTS = $(subst .cpp,.o,$(SOURCE))
|
|
|
|
|
|
|
|
|
|
|
|
../../bin/$(MODULE).so: $(OBJECTS) |
|
|
|
$(MODULE).so: $(OBJECTS) |
|
|
|
$(CC) -shared -o $@ $(OBJECTS) $(LDFLAGS) $(MODLIBS)
|
|
|
|
$(CC) -shared -o $@ $(OBJECTS) $(LDFLAGS) $(MODLIBS)
|
|
|
|
|
|
|
|
|
|
|
|
%.o: %.cpp |
|
|
|
%.o: %.cpp |
|
|
@ -32,7 +32,7 @@ clean: |
|
|
|
rm -f *.d *.o
|
|
|
|
rm -f *.d *.o
|
|
|
|
|
|
|
|
|
|
|
|
distclean: clean |
|
|
|
distclean: clean |
|
|
|
rm -f ../../bin/$(MODULE).so
|
|
|
|
rm -f $(MODULE).so
|
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
|
|
|
|
|
|
|
@ -45,14 +45,17 @@ MODOBJECTS = $(subst .cpp,.o,$(MODSOURCE)) |
|
|
|
MODDEPS = $(subst .cpp,.d,$(MODSOURCE))
|
|
|
|
MODDEPS = $(subst .cpp,.d,$(MODSOURCE))
|
|
|
|
|
|
|
|
|
|
|
|
modules: $(MODSOURCE) $(MODHEADERS) |
|
|
|
modules: $(MODSOURCE) $(MODHEADERS) |
|
|
|
|
|
|
|
[ -d bin ] || mkdir bin
|
|
|
|
for dir in $(MODDIRS); do\
|
|
|
|
for dir in $(MODDIRS); do\
|
|
|
|
make -C $$dir -f ../../Makefile MODULE=$${dir/*\//};\
|
|
|
|
mod=$${dir/*\//};\
|
|
|
|
|
|
|
|
make -C $$dir -f ../../Makefile MODULE=$$mod && ln -sf ../$$dir/$${mod}.so bin/$${mod}.so;\
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
all: modules makemap |
|
|
|
all: modules makemap |
|
|
|
|
|
|
|
|
|
|
|
makemap: $(MODOBJECTS) |
|
|
|
makemap: $(MODOBJECTS) |
|
|
|
make -C src MODLIBS="$(MODLIBS)" MODOBJECTS="$(patsubst %,../%,$(MODOBJECTS))";
|
|
|
|
[ -d bin ] || mkdir bin
|
|
|
|
|
|
|
|
make -C src MODLIBS="$(MODLIBS)" MODOBJECTS="$(patsubst %,../%,$(MODOBJECTS))" && ln -sf ../src/makemap bin/makemap
|
|
|
|
|
|
|
|
|
|
|
|
$(MODOBJECTS): $(MODSOURCE) $(MODHEADERS) |
|
|
|
$(MODOBJECTS): $(MODSOURCE) $(MODHEADERS) |
|
|
|
for dir in $(MODDIRS); do\
|
|
|
|
for dir in $(MODDIRS); do\
|
|
|
@ -70,6 +73,8 @@ distclean: |
|
|
|
make -C $$dir -f ../../Makefile MODULE=$${dir/*\//} distclean;\
|
|
|
|
make -C $$dir -f ../../Makefile MODULE=$${dir/*\//} distclean;\
|
|
|
|
done
|
|
|
|
done
|
|
|
|
make -C src distclean
|
|
|
|
make -C src distclean
|
|
|
|
|
|
|
|
rm -f bin/*
|
|
|
|
|
|
|
|
rmdir bin
|
|
|
|
|
|
|
|
|
|
|
|
-include $(wildcard modules/*/makemod) $(wildcard extramodules/*/makemod) |
|
|
|
-include $(wildcard modules/*/makemod) $(wildcard extramodules/*/makemod) |
|
|
|
|
|
|
|
|
|
|
|