Last change
on this file since 652 was
652,
checked in by cfuguet, 11 years ago
|
Modifying makefile and soclib configuration file
of the fault_tolerance::tsar_generic_iob platform.
|
-
Property svn:executable set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | SOCLIB_CC := soclib-cc |
---|
2 | RM := rm -rf |
---|
3 | CP := cp -f |
---|
4 | MAKE := make |
---|
5 | TARGET := simul.x |
---|
6 | |
---|
7 | all: $(TARGET) preloader tags |
---|
8 | |
---|
9 | # create simulator |
---|
10 | |
---|
11 | SRCS := top.cpp |
---|
12 | SRCS += tsar_iob_cluster/caba/source/src/tsar_iob_cluster.cpp |
---|
13 | INCS := tsar_iob_cluster/caba/source/include/tsar_iob_cluster.h |
---|
14 | INCS += top.desc |
---|
15 | INCS += soclib.conf |
---|
16 | |
---|
17 | $(TARGET): $(SRCS) $(INCS) |
---|
18 | $(SOCLIB_CC) -P -p top.desc -I. -o simul.x |
---|
19 | |
---|
20 | # create preloader |
---|
21 | |
---|
22 | MESHSIZE := 4c1p |
---|
23 | PRELOADER_CONF := $(PWD)/conf/preloader_$(MESHSIZE) |
---|
24 | PRELOADER_PATH := $(TSARPATH)/trunk/softs/tsar_boot |
---|
25 | PRELOADER_ARGS := "PLATFORM_DIR=$(PRELOADER_CONF) USE_DT=0 SOCLIB=1" |
---|
26 | PRELOADER_NAME ?= soft/soft.elf |
---|
27 | |
---|
28 | $(PRELOADER_NAME): |
---|
29 | $(MAKE) -C $(PRELOADER_PATH) "$(PRELOADER_ARGS)" |
---|
30 | $(CP) $(PRELOADER_PATH)/preloader.elf $(PRELOADER_NAME) |
---|
31 | |
---|
32 | preloader: $(PRELOADER_NAME) |
---|
33 | |
---|
34 | # run simulator |
---|
35 | |
---|
36 | SIMULATOR_ARGS = -SOFT $(PRELOADER_NAME) |
---|
37 | SIMULATOR_ARGS += -DISK soft/disk.dmg |
---|
38 | SIMULATOR_ARGS += -XSIZE 2 -YSIZE 2 -NPROCS 1 |
---|
39 | |
---|
40 | run: $(TARGET) $(PRELOADER_NAME) |
---|
41 | ./$< $(SIMULATOR_ARGS) |
---|
42 | |
---|
43 | # create tags file with ctags |
---|
44 | |
---|
45 | tags: |
---|
46 | $(SOCLIB_CC) -p top.desc --tags --tags-type=ctags --tags-output=$@ |
---|
47 | |
---|
48 | # clean targets |
---|
49 | |
---|
50 | clean: |
---|
51 | $(SOCLIB_CC) -x -p top.desc -I. |
---|
52 | $(RM) *.o *.x tty* term* |
---|
53 | |
---|
54 | clean-soft: |
---|
55 | $(RM) $(PRELOADER_NAME) |
---|
56 | |
---|
57 | clean-tags: |
---|
58 | $(RM) tags |
---|
59 | |
---|
60 | distclean: clean clean-soft clean-tags |
---|
61 | |
---|
62 | clean-preloader: clean-soft |
---|
63 | $(MAKE) -C $(PRELOADER_PATH) clean |
---|
64 | |
---|
65 | |
---|
66 | .PHONY: tags preloader clean clean-soft clean-preloader |
---|
67 | |
---|
Note: See
TracBrowser
for help on using the repository browser.