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

Subversion Repositories usb11

[/] [usb11/] [trunk/] [rtl/] [systemc/] [Makefile.defs] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 alfoltran
## Variable that points to SystemC installation path
2
SYSTEMC = $(SYSTEMC_HOME)
3
 
4
INCDIR = -I. -I.. -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
# For gcc, but not for CoCentri SystemC Compiler
11
USB_FLAGS = -DUSB_SIMULATION
12
 
13
LIBS   = -lsystemc -lm $(EXTRA_LIBS)
14
 
15
 
16
EXE    = $(MODULE).x
17
 
18
.SUFFIXES: .cpp .cc .o .x
19
 
20
$(EXE): $(OBJS) $(SYSTEMC)/lib-$(TARGET_ARCH)/libsystemc.a
21
        $(CC) $(CFLAGS) $(INCDIR) $(LIBDIR) -o $@ $(OBJS) $(LIBS) 2>&1 | c++filt
22
 
23
.cpp.o:
24
        $(CC) $(CFLAGS) $(INCDIR) -c $< $(USB_FLAGS)
25
 
26
.cc.o:
27
        $(CC) $(CFLAGS) $(INCDIR) -c $< $(USB_FLAGS)
28
 
29
clean::
30
        rm -f $(OBJS) *~ $(EXE)
31
 
32
ultraclean: clean
33
        rm -f Makefile.deps
34
 
35
Makefile.deps:
36
        $(CC) $(CFLAGS) $(INCDIR) -M $(SRCS) >> Makefile.deps
37
 
38
#include Makefile.deps
39
 

powered by: WebSVN 2.1.0

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