source: branches/fault_tolerance/platform/tsar_generic_iob/Makefile @ 648

Last change on this file since 648 was 648, checked in by cfuguet, 10 years ago

Introducing new platform with IO bridges in fault_tolerance
branch

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1SOCLIB_CC := soclib-cc
2RM        := rm -rf
3CP        := cp -f
4MAKE      := make
5
6# create simulator
7
8TARGET := 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
15MESHSIZE       := 4c1p
16PRELOADER_CONF := $(PWD)/conf/preloader_$(MESHSIZE)
17PRELOADER_PATH := $(TSARPATH)/trunk/softs/tsar_boot
18PRELOADER_ARGS := "PLATFORM_DIR=$(PRELOADER_CONF) USE_DT=0 SOCLIB=1"
19PRELOADER_NAME ?= soft/soft.elf
20
21$(PRELOADER_NAME):
22        $(MAKE) -C $(PRELOADER_PATH) "$(PRELOADER_ARGS)"
23        $(CP)   $(PRELOADER_PATH)/preloader.elf $(PRELOADER_NAME)
24
25preloader: $(PRELOADER_NAME)
26
27# run simulator
28
29SIMULATOR_ARGS  = -SOFT $(PRELOADER_NAME)
30SIMULATOR_ARGS += -DISK soft/disk.dmg
31SIMULATOR_ARGS += -XSIZE 2 -YSIZE 2 -NPROCS 1
32
33run: $(TARGET) $(PRELOADER_NAME)
34        ./$< $(SIMULATOR_ARGS)
35
36# create tags file with ctags
37
38tags:
39        $(SOCLIB_CC) -p top.desc --tags --tags-type=ctags --tags-output=$@
40
41# clean targets
42
43clean:
44        $(SOCLIB_CC) -x -p top.desc -I.
45        $(RM) *.o *.x tty* term*
46
47clean-soft:
48        $(RM) $(PRELOADER_NAME)
49
50clean-tags:
51        $(RM) tags
52
53distclean: clean clean-soft clean-tags
54
55clean-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 TracBrowser for help on using the repository browser.