Last change
on this file since 648 was
648,
checked in by cfuguet, 11 years ago
|
Introducing new platform with IO bridges in fault_tolerance
branch
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
Line | |
---|
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 |
---|
42 | |
---|
43 | clean: |
---|
44 | $(SOCLIB_CC) -x -p top.desc -I. |
---|
45 | $(RM) *.o *.x tty* term* |
---|
46 | |
---|
47 | clean-soft: |
---|
48 | $(RM) $(PRELOADER_NAME) |
---|
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
TracBrowser
for help on using the repository browser.