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