File: Makefile

package info (click to toggle)
systemc 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 41,768 kB
  • sloc: cpp: 181,958; sh: 4,925; asm: 2,700; perl: 1,980; ansic: 1,931; makefile: 1,761; fortran: 492; python: 482; awk: 157; csh: 50
file content (37 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
include ../../build-unix/Makefile.config

PROJECTS := fir fir_rtl
COMMON_TARGETS := all build run check clean ultraclean

COMMON_SRCS = \
	stimulus.cpp \
	display.cpp 

fir_SRCS = \
	$(COMMON_SRCS) \
	fir.cpp \
	main.cpp 

fir_rtl_SRCS = \
	$(COMMON_SRCS) \
	fir_fsm.cpp \
	fir_data.cpp \
	main_rtl.cpp 

# project not set -> all projects
ifeq (,$(strip $(PROJECT)))

$(COMMON_TARGETS)::
	@for prj in $(PROJECTS) ; do  \
	  $(MAKE) $@ FLAG_BATCH=1 PROJECT=$$prj ; \
	done

else # module-specific rules

OBJS := $($(PROJECT)_SRCS:.cpp=.o)

include ../../build-unix/Makefile.rules

endif # project switch

## Taf!