2006-04-18 07:29:41 +00:00
|
|
|
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))
|
2006-02-25 13:20:38 +00:00
|
|
|
|
2006-04-18 07:29:41 +00:00
|
|
|
SUBTARGETS_CLEAN := $(addsuffix -clean,$(SUBTARGETS))
|
2005-09-15 13:52:16 +00:00
|
|
|
|
2006-04-18 07:29:41 +00:00
|
|
|
.PHONY: all clean $(SUBTARGETS) $(SUBTARGETS_CLEAN)
|
2005-09-15 13:52:16 +00:00
|
|
|
all: $(SUBTARGETS)
|
2006-01-16 14:44:07 +00:00
|
|
|
clean: $(SUBTARGETS_CLEAN)
|
2005-09-15 13:52:16 +00:00
|
|
|
|
2006-01-04 23:35:09 +00:00
|
|
|
$(SUBTARGETS):
|
|
|
|
$(MAKE) -C $@
|
2005-09-15 13:52:16 +00:00
|
|
|
|
2006-01-16 14:44:07 +00:00
|
|
|
$(SUBTARGETS_CLEAN):
|
|
|
|
$(MAKE) -C $(@:-clean=) clean
|