- Timestamp:
- Jul 16, 2015, 3:17:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/Makefile
r1001 r1007 1 TAGS := cscope.out 1 RM := rm -f 2 SOCLIB_CC := soclib-cc 2 3 SOCLIB_CC_MODE := -m release 3 4 SOCLIB_CC_ARGS := $(SOCLIB_CC_MODE) … … 8 9 #SOCLIB_CC_ARGS += -bcaba:vci_block_device_tsar 9 10 10 all: simul.x 11 TAGS := cscope.out 12 TARGET := simul.x 13 14 objs := $(wildcard *.o) 15 objs += $(wildcard term[0-9]) 16 objs += $(wildcard $(TARGET)) 17 objs := $(strip $(objs)) 18 19 extra_objs := $(wildcard scripts/*.pyc) 20 extra_objs += $(wildcard hard_config.h) 21 extra_objs += $(wildcard $(TAGS)) 22 extra_objs := $(strip $(extra_objs)) 23 24 all: $(TARGET) 11 25 tags: $(TAGS) 12 26 13 simul.x: top.cpp top.desc 14 soclib-cc $(SOCLIB_CC_ARGS) -P -p top.desc -I. -o simul.x 27 .PHONY: $(TARGET) 28 $(TARGET): top.desc top.cpp 29 $(SOCLIB_CC) $(SOCLIB_CC_ARGS) -P -p $< -I. -o $@ 15 30 31 .PHONY: $(TAGS) 16 32 $(TAGS): top.desc 17 soclib-cc-p $< --tags --tags-type=cscope --tags-output=$@33 $(SOCLIB_CC) -p $< --tags --tags-type=cscope --tags-output=$@ 18 34 35 .PHONY: clean 19 36 clean: 20 soclib-cc $(SOCLIB_CC_MODE) -x -p top.desc -I. 21 rm -rf *.o *.x tty* term* 37 $(SOCLIB_CC) $(SOCLIB_CC_MODE) -x -p top.desc -I. 38 ifneq ($(objs),) 39 $(RM) $(objs) 40 endif 22 41 42 .PHONY: distclean 23 43 distclean: clean 24 rm -f $(TAGS) hard_config.h 25 find . -name "*.pyc" -exec rm -f {} \; 26 27 .PHONY: simul.x $(TAGS) 28 44 ifneq ($(extra_objs),) 45 $(RM) $(extra_objs) 46 endif
Note: See TracChangeset
for help on using the changeset viewer.