2014-04-01 18:44:30 +02:00
|
|
|
TAR = mcpat
|
2014-06-03 22:32:29 +02:00
|
|
|
BUILD_DIR ?= ../../build
|
|
|
|
ODIR = $(BUILD_DIR)/mcpat
|
2014-04-01 18:44:30 +02:00
|
|
|
|
2014-06-03 22:32:29 +02:00
|
|
|
.PHONY: all dbg opt clean clean_dbg clean_opt
|
2014-04-01 18:44:30 +02:00
|
|
|
|
|
|
|
all: opt
|
|
|
|
|
2014-06-03 22:32:29 +02:00
|
|
|
dbg: $(TAR).mk $(ODIR)/obj_dbg
|
|
|
|
@$(MAKE) TAG=dbg ODIR=$(ODIR) -C . -f $(TAR).mk
|
2014-04-01 18:44:30 +02:00
|
|
|
|
2014-06-03 22:32:29 +02:00
|
|
|
opt: $(TAR).mk $(ODIR)/obj_opt
|
|
|
|
@$(MAKE) TAG=opt ODIR=$(ODIR) -C . -f $(TAR).mk
|
2014-04-01 18:44:30 +02:00
|
|
|
|
2014-06-03 22:32:29 +02:00
|
|
|
$(ODIR)/obj_dbg:
|
|
|
|
mkdir -p $@
|
2014-04-01 18:44:30 +02:00
|
|
|
|
2014-06-03 22:32:29 +02:00
|
|
|
$(ODIR)/obj_opt:
|
|
|
|
mkdir -p $@
|
2014-04-01 18:44:30 +02:00
|
|
|
|
|
|
|
clean: clean_dbg clean_opt
|
|
|
|
|
2014-06-03 22:32:29 +02:00
|
|
|
clean_dbg: $(ODIR)/obj_dbg
|
|
|
|
@$(MAKE) TAG=dbg ODIR=$(ODIR) -C . -f $(TAR).mk clean
|
2014-04-01 18:44:30 +02:00
|
|
|
rm -rf $<
|
|
|
|
|
2014-06-03 22:32:29 +02:00
|
|
|
clean_opt: $(ODIR)/obj_opt
|
|
|
|
@$(MAKE) TAG=opt ODIR=$(ODIR) -C . -f $(TAR).mk clean
|
2014-04-01 18:44:30 +02:00
|
|
|
rm -rf $<
|
|
|
|
|