OpenCores
URL https://opencores.org/ocsvn/systemc_rng/systemc_rng/trunk

Subversion Repositories systemc_rng

[/] [systemc_rng/] [trunk/] [rtl/] [systemc/] [Makefile.defs] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 jcastillo
## Variable that points to SystemC installation path
2
SYSTEMC = $(SYSTEMC_HOME)
3
 
4
INCDIR = -I. -I.. -I../../bench -I$(SYSTEMC)/include
5
LIBDIR = -L. -L.. -L$(SYSTEMC)/lib-$(TARGET_ARCH)
6
 
7
# Build with maximum gcc warning level
8
CFLAGS = $(PLATFORM_SPECIFIC_FLAGS) $(EXTRA_CFLAGS)
9
 
10
LIBS   = -lm -lsystemc $(EXTRA_LIBS)
11
 
12
EXE    = $(MODULE).x
13
 
14
.SUFFIXES: .cpp .cc .o .x
15
 
16
$(EXE): $(OBJS) $(SYSTEMC)/lib-$(TARGET_ARCH)/libsystemc.a
17
        $(CC) $(CFLAGS) $(INCDIR) $(LIBDIR) -o $@ $(OBJS) $(LIBS) $(SYSTEMC)/lib-$(TARGET_ARCH)/libsystemc.a  2>&1 | c++filt
18
 
19
.cpp.o:
20
        $(CC) $(CFLAGS) $(INCDIR) -c $< $(USB_FLAGS)
21
 
22
.cc.o:
23
        $(CC) $(CFLAGS) $(INCDIR) -c $< $(USB_FLAGS)
24
 
25
clean::
26
        rm -f $(OBJS) *~ $(EXE)
27
 
28
ultraclean: clean
29
        rm -f Makefile.deps
30
 
31
Makefile.deps:
32
        $(CC) $(CFLAGS) $(INCDIR) -M $(SRCS) >> Makefile.deps
33
 
34
#include Makefile.deps

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.