makefile (10152:52c552138ba1) makefile (10232:ae97cd1bad82)
1TAR = mcpat
1TAR = mcpat
2BUILD_DIR ?= ../../build
3ODIR = $(BUILD_DIR)/mcpat
2
4
3.PHONY: dbg opt depend clean clean_dbg clean_opt
5.PHONY: all dbg opt clean clean_dbg clean_opt
4
5all: opt
6
6
7all: opt
8
7dbg: $(TAR).mk obj_dbg
8 @$(MAKE) TAG=dbg -C . -f $(TAR).mk
9dbg: $(TAR).mk $(ODIR)/obj_dbg
10 @$(MAKE) TAG=dbg ODIR=$(ODIR) -C . -f $(TAR).mk
9
11
10opt: $(TAR).mk obj_opt
11 @$(MAKE) TAG=opt -C . -f $(TAR).mk
12opt: $(TAR).mk $(ODIR)/obj_opt
13 @$(MAKE) TAG=opt ODIR=$(ODIR) -C . -f $(TAR).mk
12
14
13obj_dbg:
14 mkdir $@
15$(ODIR)/obj_dbg:
16 mkdir -p $@
15
17
16obj_opt:
17 mkdir $@
18$(ODIR)/obj_opt:
19 mkdir -p $@
18
19clean: clean_dbg clean_opt
20
20
21clean: clean_dbg clean_opt
22
21clean_dbg: obj_dbg
22 @$(MAKE) TAG=dbg -C . -f $(TAR).mk clean
23clean_dbg: $(ODIR)/obj_dbg
24 @$(MAKE) TAG=dbg ODIR=$(ODIR) -C . -f $(TAR).mk clean
23 rm -rf $<
24
25 rm -rf $<
26
25clean_opt: obj_opt
26 @$(MAKE) TAG=opt -C . -f $(TAR).mk clean
27clean_opt: $(ODIR)/obj_opt
28 @$(MAKE) TAG=opt ODIR=$(ODIR) -C . -f $(TAR).mk clean
27 rm -rf $<
28
29 rm -rf $<
30