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

Last change on this file since 658 was 658, checked in by cfuguet, 11 years ago

TSAR FAULT TOLERANCE BRANCH

  • Introducing replicated ROMs in cluster to contain the distributed boot procedure.
  • Erasing ROM in the IO network
  • Property svn:executable set to *
File size: 1.4 KB
RevLine 
[648]1SOCLIB_CC := soclib-cc
2RM        := rm -rf
3CP        := cp -f
4MAKE      := make
[652]5TARGET    := simul.x
[658]6ARGS      ?=
[450]7
[652]8all: $(TARGET) preloader tags
9
[648]10# create simulator
11
[652]12SRCS := top.cpp
13SRCS += tsar_iob_cluster/caba/source/src/tsar_iob_cluster.cpp
14INCS := tsar_iob_cluster/caba/source/include/tsar_iob_cluster.h
15INCS += top.desc
16INCS += soclib.conf
[648]17
[652]18$(TARGET): $(SRCS) $(INCS)
[648]19        $(SOCLIB_CC) -P -p top.desc -I. -o simul.x
20
21# create preloader
22
23MESHSIZE       := 4c1p
24PRELOADER_CONF := $(PWD)/conf/preloader_$(MESHSIZE)
25PRELOADER_PATH := $(TSARPATH)/trunk/softs/tsar_boot
26PRELOADER_ARGS := "PLATFORM_DIR=$(PRELOADER_CONF) USE_DT=0 SOCLIB=1"
27PRELOADER_NAME ?= soft/soft.elf
28
29$(PRELOADER_NAME):
30        $(MAKE) -C $(PRELOADER_PATH) "$(PRELOADER_ARGS)"
31        $(CP)   $(PRELOADER_PATH)/preloader.elf $(PRELOADER_NAME)
32
33preloader: $(PRELOADER_NAME)
34
35# run simulator
36
37SIMULATOR_ARGS  = -SOFT $(PRELOADER_NAME)
38SIMULATOR_ARGS += -DISK soft/disk.dmg
39SIMULATOR_ARGS += -XSIZE 2 -YSIZE 2 -NPROCS 1
[658]40SIMULATOR_ARGS += $(ARGS)
[648]41
42run: $(TARGET) $(PRELOADER_NAME)
43        ./$< $(SIMULATOR_ARGS)
44
45# create tags file with ctags
46
47tags:
48        $(SOCLIB_CC) -p top.desc --tags --tags-type=ctags --tags-output=$@
49
50# clean targets
51
[450]52clean:
[648]53        $(SOCLIB_CC) -x -p top.desc -I.
54        $(RM) *.o *.x tty* term*
[607]55
[648]56clean-soft:
57        $(RM) $(PRELOADER_NAME)
[618]58
[648]59clean-tags:
60        $(RM) tags
61
62distclean: clean clean-soft clean-tags
63
64clean-preloader: clean-soft
65        $(MAKE) -C $(PRELOADER_PATH) clean
66
67
[652]68.PHONY: tags preloader clean clean-soft clean-preloader
[648]69
Note: See TracBrowser for help on using the repository browser.