Ignore:
Timestamp:
Mar 2, 2014, 10:14:35 PM (11 years ago)
Author:
cfuguet
Message:

Introducing new platform with IO bridges in fault_tolerance
branch

Location:
branches/fault_tolerance/platform/tsar_generic_iob
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/fault_tolerance/platform/tsar_generic_iob/Makefile

    r618 r648  
    1 simul.x: top.cpp top.desc
    2         soclib-cc -P -p top.desc -I. -o simul.x
     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
    342
    443clean:
    5         soclib-cc -x -p top.desc -I.
    6         rm -rf *.o *.x tty* term*
     44        $(SOCLIB_CC) -x -p top.desc -I.
     45        $(RM) *.o *.x tty* term*
    746
    8 .PHONY:simul.x
     47clean-soft:
     48        $(RM) $(PRELOADER_NAME)
    949
     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 TracChangeset for help on using the changeset viewer.