ex_adder: Makefile.defs

File Makefile.defs, 664 bytes (added by fpecheux, 15 years ago)
Line 
1## Variable that points to SystemC installation path
2SYSTEMC = /home/fp/orig/systemc-2.0.1
3
4
5INCDIR = -I. -I.. -I$(SYSTEMC)/include
6LIBDIR = -L. -L.. -L$(SYSTEMC)/lib-$(TARGET_ARCH)
7
8LIBS   =  -lsystemc -lm $(EXTRA_LIBS)
9
10
11EXE    = $(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
24clean::
25        rm -f $(OBJS) *~ $(EXE) core
26
27ultraclean: clean
28        rm -f Makefile.deps
29
30Makefile.deps:
31#       $(CC) $(CFLAGS) $(INCDIR) -M $(SRCS) >> Makefile.deps
32
33#include Makefile.deps