- Timestamp:
- Jun 23, 2014, 4:02:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fault_tolerance/platform/tsar_generic_iob/Makefile
r658 r717 1 SOCLIB_CC := soclib-cc 2 RM := rm -rf 3 CP := cp -f4 MAKE := make 5 TARGET := simul.x 6 ARGS ?= 1 ARGS ?= 2 SOCLIB_CC := soclib-cc 3 RM := rm -rf 4 CP := cp -f 5 MAKE := make 6 CONFIG_DIR := $(PWD)/conf 7 7 8 all: $(TARGET) preloader tags 8 TARGET := simul.x 9 10 all: $(TARGET) tags 9 11 10 12 # create simulator … … 13 15 SRCS += tsar_iob_cluster/caba/source/src/tsar_iob_cluster.cpp 14 16 INCS := tsar_iob_cluster/caba/source/include/tsar_iob_cluster.h 17 INCS += $(CONFIG_DIR)/hard_config.h 15 18 INCS += top.desc 16 19 INCS += soclib.conf 17 20 18 $(TARGET): $(SRCS) $(INCS) 21 $(TARGET): $(SRCS) $(INCS) soclib.conf 19 22 $(SOCLIB_CC) -P -p top.desc -I. -o simul.x 20 23 21 24 # create preloader 22 25 23 MESHSIZE := 4c1p24 PRELOADER_CONF := $(PWD)/conf/preloader_$(MESHSIZE)25 26 PRELOADER_PATH := $(TSARPATH)/trunk/softs/tsar_boot 26 PRELOADER_ARGS := "PLATFORM_DIR=$( PRELOADER_CONF) USE_DT=0 SOCLIB=1"27 PRELOADER_ARGS := "PLATFORM_DIR=$(CONFIG_DIR) USE_DT=0 SOCLIB=1" 27 28 PRELOADER_NAME ?= soft/soft.elf 28 29 … … 35 36 # run simulator 36 37 37 SIMULATOR_ARGS = -SOFT $(PRELOADER_NAME) 38 SIMULATOR_ARGS += -DISK soft/disk.dmg 39 SIMULATOR_ARGS += -XSIZE 2 -YSIZE 2 -NPROCS 1 38 SOFT ?= $(PRELOADER_NAME) 39 DISK ?= /dev/null 40 41 SIMULATOR_ARGS = -SOFT $(SOFT) 42 SIMULATOR_ARGS += -DISK $(DISK) 40 43 SIMULATOR_ARGS += $(ARGS) 41 44 42 run: $(TARGET) $( PRELOADER_NAME)45 run: $(TARGET) $(SOFT) 43 46 ./$< $(SIMULATOR_ARGS) 44 47 45 # create tags file with ctags 48 # create tags file with cscope 49 tags: cscope.out 46 50 47 tags:48 $(SOCLIB_CC) -p top.desc --tags --tags-type=c tags--tags-output=$@51 cscope.out: 52 $(SOCLIB_CC) -p top.desc --tags --tags-type=cscope --tags-output=$@ 49 53 50 54 # clean targets 51 55 52 56 clean: 57 $(SOCLIB_CC) -X 53 58 $(SOCLIB_CC) -x -p top.desc -I. 54 $(RM) *.o *.x tty* term*59 $(RM) *.o *.x mtty_* 55 60 56 61 clean-soft: 57 $(RM) $( PRELOADER_NAME)62 $(RM) $(SOFT) 58 63 59 64 clean-tags: … … 66 71 67 72 68 .PHONY: tags preloader clean clean-soft clean-preloader73 .PHONY: tags simul.x preloader clean clean-soft clean-preloader 69 74
Note: See TracChangeset
for help on using the changeset viewer.