|
|
@ -11,9 +11,11 @@ LDFLAGS+=$(OPTFLAGS) $(EXPORTFLAGS) $(WARNFLAGS) $(LIBSFLAGS) |
|
|
|
CC=g++
|
|
|
|
CC=g++
|
|
|
|
|
|
|
|
|
|
|
|
ifdef MODULE |
|
|
|
ifdef MODULE |
|
|
|
-include makemod |
|
|
|
|
|
|
|
|
|
|
|
default: $(MODULE).so |
|
|
|
|
|
|
|
|
|
|
|
SOURCE = $(wildcard *.cpp)
|
|
|
|
SOURCE = $(wildcard *.cpp)
|
|
|
|
|
|
|
|
-include makemod |
|
|
|
DEPENDS = $(subst .cpp,.d,$(SOURCE))
|
|
|
|
DEPENDS = $(subst .cpp,.d,$(SOURCE))
|
|
|
|
OBJECTS = $(subst .cpp,.o,$(SOURCE))
|
|
|
|
OBJECTS = $(subst .cpp,.o,$(SOURCE))
|
|
|
|
|
|
|
|
|
|
|
@ -36,11 +38,14 @@ distclean: clean |
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default: modules |
|
|
|
|
|
|
|
|
|
|
|
MODDIRS = $(wildcard modules/*)
|
|
|
|
MODDIRS = $(wildcard modules/*)
|
|
|
|
MODDIRS+= $(wildcard extramodules/*)
|
|
|
|
MODDIRS+= $(wildcard extramodules/*)
|
|
|
|
|
|
|
|
|
|
|
|
MODSOURCE = $(wildcard modules/*/*.cpp extramodules/*/*.cpp)
|
|
|
|
MODSOURCE = $(wildcard modules/*/*.cpp extramodules/*/*.cpp)
|
|
|
|
MODHEADERS = $(wildcard modules/*/*.h extramodules/*/*.h)
|
|
|
|
MODHEADERS = $(wildcard modules/*/*.h extramodules/*/*.h)
|
|
|
|
|
|
|
|
-include $(wildcard modules/*/makemod) $(wildcard extramodules/*/makemod) |
|
|
|
MODOBJECTS = $(subst .cpp,.o,$(MODSOURCE))
|
|
|
|
MODOBJECTS = $(subst .cpp,.o,$(MODSOURCE))
|
|
|
|
MODDEPS = $(subst .cpp,.d,$(MODSOURCE))
|
|
|
|
MODDEPS = $(subst .cpp,.d,$(MODSOURCE))
|
|
|
|
|
|
|
|
|
|
|
@ -75,9 +80,6 @@ distclean: |
|
|
|
make -C src distclean
|
|
|
|
make -C src distclean
|
|
|
|
rm -f bin/*
|
|
|
|
rm -f bin/*
|
|
|
|
rmdir bin
|
|
|
|
rmdir bin
|
|
|
|
|
|
|
|
|
|
|
|
-include $(wildcard modules/*/makemod) $(wildcard extramodules/*/makemod) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|