1 | ## Variable that points to SystemC installation path |
---|
2 | SYSTEMC = /home/fp/orig/systemc-2.0.1 |
---|
3 | |
---|
4 | |
---|
5 | INCDIR = -I. -I.. -I$(SYSTEMC)/include |
---|
6 | LIBDIR = -L. -L.. -L$(SYSTEMC)/lib-$(TARGET_ARCH) |
---|
7 | |
---|
8 | LIBS = -lsystemc -lm $(EXTRA_LIBS) |
---|
9 | |
---|
10 | |
---|
11 | EXE = $(MODULE).x |
---|
12 | |
---|
13 | .SUFFIXES: .cc .cpp .o .x |
---|
14 | |
---|
15 | $(EXE): $(OBJS) $(SYSTEMC)/lib-$(TARGET_ARCH)/libsystemc.a |
---|
16 | $(CC) $(CFLAGS) $(INCDIR) $(LIBDIR) -o $@ $(OBJS) $(LIBS) 2>&1 | c++filt |
---|
17 | |
---|
18 | .cpp.o: |
---|
19 | $(CC) $(CFLAGS) $(INCDIR) -c $< |
---|
20 | |
---|
21 | .cc.o: |
---|
22 | $(CC) $(CFLAGS) $(INCDIR) -c $< |
---|
23 | |
---|
24 | clean:: |
---|
25 | rm -f $(OBJS) *~ $(EXE) core |
---|
26 | |
---|
27 | ultraclean: clean |
---|
28 | rm -f Makefile.deps |
---|
29 | |
---|
30 | Makefile.deps: |
---|
31 | # $(CC) $(CFLAGS) $(INCDIR) -M $(SRCS) >> Makefile.deps |
---|
32 | |
---|
33 | #include Makefile.deps |
---|