makefile revision 10232:ae97cd1bad82
15359Sgblack@eecs.umich.eduTAR = mcpat 25359Sgblack@eecs.umich.eduBUILD_DIR ?= ../../build 35359Sgblack@eecs.umich.eduODIR = $(BUILD_DIR)/mcpat 45359Sgblack@eecs.umich.edu 55359Sgblack@eecs.umich.edu.PHONY: all dbg opt clean clean_dbg clean_opt 65359Sgblack@eecs.umich.edu 75359Sgblack@eecs.umich.eduall: opt 85359Sgblack@eecs.umich.edu 95359Sgblack@eecs.umich.edudbg: $(TAR).mk $(ODIR)/obj_dbg 105359Sgblack@eecs.umich.edu @$(MAKE) TAG=dbg ODIR=$(ODIR) -C . -f $(TAR).mk 115359Sgblack@eecs.umich.edu 125359Sgblack@eecs.umich.eduopt: $(TAR).mk $(ODIR)/obj_opt 135359Sgblack@eecs.umich.edu @$(MAKE) TAG=opt ODIR=$(ODIR) -C . -f $(TAR).mk 145359Sgblack@eecs.umich.edu 155359Sgblack@eecs.umich.edu$(ODIR)/obj_dbg: 165359Sgblack@eecs.umich.edu mkdir -p $@ 175359Sgblack@eecs.umich.edu 185359Sgblack@eecs.umich.edu$(ODIR)/obj_opt: 195359Sgblack@eecs.umich.edu mkdir -p $@ 205359Sgblack@eecs.umich.edu 215359Sgblack@eecs.umich.educlean: clean_dbg clean_opt 225359Sgblack@eecs.umich.edu 235359Sgblack@eecs.umich.educlean_dbg: $(ODIR)/obj_dbg 245359Sgblack@eecs.umich.edu @$(MAKE) TAG=dbg ODIR=$(ODIR) -C . -f $(TAR).mk clean 255359Sgblack@eecs.umich.edu rm -rf $< 265359Sgblack@eecs.umich.edu 275359Sgblack@eecs.umich.educlean_opt: $(ODIR)/obj_opt 285359Sgblack@eecs.umich.edu @$(MAKE) TAG=opt ODIR=$(ODIR) -C . -f $(TAR).mk clean 295359Sgblack@eecs.umich.edu rm -rf $< 304561Sgblack@eecs.umich.edu 314561Sgblack@eecs.umich.edu