- Timestamp:
- Mar 2, 2014, 10:14:35 PM (11 years ago)
- Location:
- branches/fault_tolerance/platform/tsar_generic_iob
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/fault_tolerance/platform/tsar_generic_iob/Makefile
r618 r648 1 simul.x: top.cpp top.desc 2 soclib-cc -P -p top.desc -I. -o simul.x 1 SOCLIB_CC := soclib-cc 2 RM := rm -rf 3 CP := cp -f 4 MAKE := make 5 6 # create simulator 7 8 TARGET := simul.x 9 10 $(TARGET): top.cpp top.desc 11 $(SOCLIB_CC) -P -p top.desc -I. -o simul.x 12 13 # create preloader 14 15 MESHSIZE := 4c1p 16 PRELOADER_CONF := $(PWD)/conf/preloader_$(MESHSIZE) 17 PRELOADER_PATH := $(TSARPATH)/trunk/softs/tsar_boot 18 PRELOADER_ARGS := "PLATFORM_DIR=$(PRELOADER_CONF) USE_DT=0 SOCLIB=1" 19 PRELOADER_NAME ?= soft/soft.elf 20 21 $(PRELOADER_NAME): 22 $(MAKE) -C $(PRELOADER_PATH) "$(PRELOADER_ARGS)" 23 $(CP) $(PRELOADER_PATH)/preloader.elf $(PRELOADER_NAME) 24 25 preloader: $(PRELOADER_NAME) 26 27 # run simulator 28 29 SIMULATOR_ARGS = -SOFT $(PRELOADER_NAME) 30 SIMULATOR_ARGS += -DISK soft/disk.dmg 31 SIMULATOR_ARGS += -XSIZE 2 -YSIZE 2 -NPROCS 1 32 33 run: $(TARGET) $(PRELOADER_NAME) 34 ./$< $(SIMULATOR_ARGS) 35 36 # create tags file with ctags 37 38 tags: 39 $(SOCLIB_CC) -p top.desc --tags --tags-type=ctags --tags-output=$@ 40 41 # clean targets 3 42 4 43 clean: 5 soclib-cc-x -p top.desc -I.6 rm -rf*.o *.x tty* term*44 $(SOCLIB_CC) -x -p top.desc -I. 45 $(RM) *.o *.x tty* term* 7 46 8 .PHONY:simul.x 47 clean-soft: 48 $(RM) $(PRELOADER_NAME) 9 49 50 clean-tags: 51 $(RM) tags 52 53 distclean: clean clean-soft clean-tags 54 55 clean-preloader: clean-soft 56 $(MAKE) -C $(PRELOADER_PATH) clean 57 58 59 .PHONY: simul.x tags preloader clean clean-soft clean-preloader 60
Note: See TracChangeset
for help on using the changeset viewer.