source: branches/reconfiguration/platforms/tsar_generic_iob/Makefile @ 1054

Last change on this file since 1054 was 1007, checked in by cfuguet, 9 years ago

reconf: update the reconfiguration/tsar_generic_iob to comply with new
constructor parameters of the NIC and CHBUF_DMA peripherals.

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1RM             := rm -f
2SOCLIB_CC      := soclib-cc
3SOCLIB_CC_MODE := -m release
4SOCLIB_CC_ARGS := $(SOCLIB_CC_MODE)
5SOCLIB_CC_ARGS += -v
6#SOCLIB_CC_ARGS += -t envsystemc
7#SOCLIB_CC_ARGS += -bcaba:reconf:vci_xicu
8#SOCLIB_CC_ARGS += -bcaba:vci_iopic
9#SOCLIB_CC_ARGS += -bcaba:vci_block_device_tsar
10
11TAGS           := cscope.out
12TARGET         := simul.x
13
14objs           := $(wildcard *.o)
15objs           += $(wildcard term[0-9])
16objs           += $(wildcard $(TARGET))
17objs           := $(strip $(objs))
18
19extra_objs     := $(wildcard scripts/*.pyc)
20extra_objs     += $(wildcard hard_config.h)
21extra_objs     += $(wildcard $(TAGS))
22extra_objs     := $(strip $(extra_objs))
23
24all: $(TARGET)
25tags: $(TAGS)
26
27.PHONY: $(TARGET)
28$(TARGET): top.desc top.cpp
29        $(SOCLIB_CC) $(SOCLIB_CC_ARGS) -P -p $< -I. -o $@
30
31.PHONY: $(TAGS)
32$(TAGS): top.desc
33        $(SOCLIB_CC) -p $< --tags --tags-type=cscope --tags-output=$@
34
35.PHONY: clean
36clean:
37        $(SOCLIB_CC) $(SOCLIB_CC_MODE) -x -p top.desc -I.
38ifneq ($(objs),)
39        $(RM) $(objs)
40endif
41
42.PHONY: distclean
43distclean: clean
44ifneq ($(extra_objs),)
45        $(RM) $(extra_objs)
46endif
Note: See TracBrowser for help on using the repository browser.