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

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 
1SOCLIB_CC := soclib-cc
2RM        := rm -rf
3CP        := cp -f
4MAKE      := make
5TARGET    := simul.x
6
7all: $(TARGET) preloader tags
8
9# create simulator
10
11SRCS := top.cpp
12SRCS += tsar_iob_cluster/caba/source/src/tsar_iob_cluster.cpp
13INCS := tsar_iob_cluster/caba/source/include/tsar_iob_cluster.h
14INCS += top.desc
15INCS += soclib.conf
16
17$(TARGET): $(SRCS) $(INCS)
18        $(SOCLIB_CC) -P -p top.desc -I. -o simul.x
19
20# create preloader
21
22MESHSIZE       := 4c1p
23PRELOADER_CONF := $(PWD)/conf/preloader_$(MESHSIZE)
24PRELOADER_PATH := $(TSARPATH)/trunk/softs/tsar_boot
25PRELOADER_ARGS := "PLATFORM_DIR=$(PRELOADER_CONF) USE_DT=0 SOCLIB=1"
26PRELOADER_NAME ?= soft/soft.elf
27
28$(PRELOADER_NAME):
29        $(MAKE) -C $(PRELOADER_PATH) "$(PRELOADER_ARGS)"
30        $(CP)   $(PRELOADER_PATH)/preloader.elf $(PRELOADER_NAME)
31
32preloader: $(PRELOADER_NAME)
33
34# run simulator
35
36SIMULATOR_ARGS  = -SOFT $(PRELOADER_NAME)
37SIMULATOR_ARGS += -DISK soft/disk.dmg
38SIMULATOR_ARGS += -XSIZE 2 -YSIZE 2 -NPROCS 1
39
40run: $(TARGET) $(PRELOADER_NAME)
41        ./$< $(SIMULATOR_ARGS)
42
43# create tags file with ctags
44
45tags:
46        $(SOCLIB_CC) -p top.desc --tags --tags-type=ctags --tags-output=$@
47
48# clean targets
49
50clean:
51        $(SOCLIB_CC) -x -p top.desc -I.
52        $(RM) *.o *.x tty* term*
53
54clean-soft:
55        $(RM) $(PRELOADER_NAME)
56
57clean-tags:
58        $(RM) tags
59
60distclean: clean clean-soft clean-tags
61
62clean-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.