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

Subversion Repositories sardmips

[/] [sardmips/] [trunk/] [source/] [Makefile.defs] - Rev 4

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

## Variable that points to SystemC installation path
SYSTEMC = /home/chester/Desktop/systemc-2.0.1


INCDIR = -I. -I.. -I$(SYSTEMC)/include
LIBDIR = -L. -L.. -L$(SYSTEMC)/lib-$(TARGET_ARCH)

LIBS   =  -lsystemc -lm $(EXTRA_LIBS)


EXE    = $(MODULE).x

.SUFFIXES: .cc .cpp .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 $<

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

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

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.