28ac0a23b2
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@651 7ec92016-0320-0410-acc4-a06ded1c099a
24 lines
551 B
Makefile
Executable file
24 lines
551 B
Makefile
Executable file
export CPPFLAGS = -I../../include -DNDEBUG
|
|
export LDFLAGS = -L../../lib
|
|
export LDLIBS = -lloki
|
|
|
|
ifeq ($(OS),Windows)
|
|
export BIN_SUFFIX = .exe
|
|
else
|
|
export BIN_SUFFIX =
|
|
endif
|
|
|
|
SUBTARGETS_ORIG := $(patsubst %/,%,$(dir $(wildcard */Makefile)))
|
|
SUBTARGETS := $(filter-out $(SUBTARGETS_FILTER_OUT),$(SUBTARGETS_ORIG))
|
|
|
|
SUBTARGETS_CLEAN := $(addsuffix -clean,$(SUBTARGETS))
|
|
|
|
.PHONY: all clean $(SUBTARGETS) $(SUBTARGETS_CLEAN)
|
|
all: $(SUBTARGETS)
|
|
clean: $(SUBTARGETS_CLEAN)
|
|
|
|
$(SUBTARGETS):
|
|
$(MAKE) -C $@
|
|
|
|
$(SUBTARGETS_CLEAN):
|
|
$(MAKE) -C $(@:-clean=) clean
|