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

Subversion Repositories usb11

[/] [usb11/] [trunk/] [rtl/] [systemc/] [Makefile.defs] - Rev 15

Go to most recent revision | Compare with Previous | Blame | View Log

## Variable that points to SystemC installation path
SYSTEMC = $(SYSTEMC_HOME)
 
INCDIR = -I. -I.. -I$(SYSTEMC)/include
LIBDIR = -L. -L.. -L$(SYSTEMC)/lib-$(TARGET_ARCH)

# Build with maximum gcc warning level
CFLAGS = $(PLATFORM_SPECIFIC_FLAGS) $(EXTRA_CFLAGS)

# For gcc, but not for CoCentri SystemC Compiler
USB_FLAGS = -DUSB_SIMULATION

LIBS   = -lsystemc -lm $(EXTRA_LIBS)


EXE    = $(MODULE).x

.SUFFIXES: .cpp .cc .o .x

$(EXE): $(OBJS) $(SYSTEMC)/lib-$(TARGET_ARCH)/libsystemc.a 
        $(CC) $(CFLAGS) $(INCDIR) $(LIBDIR) -o $@ $(OBJS) $(LIBS) 2>&1 | c++filt

.cpp.o:
        $(CC) $(CFLAGS) $(INCDIR) -c $< $(USB_FLAGS)

.cc.o:
        $(CC) $(CFLAGS) $(INCDIR) -c $< $(USB_FLAGS)

clean::
        rm -f $(OBJS) *~ $(EXE)

ultraclean: clean
        rm -f Makefile.deps

Makefile.deps:
        $(CC) $(CFLAGS) $(INCDIR) -M $(SRCS) >> Makefile.deps

#include Makefile.deps

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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