OSDN Git Service

4852da301f8d748d15590edfc4ff2ebee2636d35
[oca1/test.git] / USB_Keybord_MAX3421E / src / Makefile
1 SRCS=\
2 SPI_controler.nsl
3
4 CPP_SRCS=\
5 SPI_controler.cpp\
6 SPI_controler_test_case.cpp\
7 SPI_controler_top.cpp
8 LDFLAGS= -L/home/bols/systemc-2.2.0/lib-linux 
9 LDLIBS= -lcppunit -lsystemc
10 CXXFLAGS= -I/home/bols/systemc-2.2.0/include
11 INC= -I/home/bols/systemc-2.2.0/include
12 SC_SRCS=$(patsubst %.nsl,%.sc,$(filter %.nsl,$(SRCS)))
13 OBJCS=$(patsubst %.cpp,%.o,$(filter %.cpp,$(CPP_SRCS)))
14
15 .SUFFIXES: .o .sc .nsl
16
17 all:create_sc runtest
18         echo $(SC_SRCS)
19
20 create_sc:$(SC_SRCS)
21
22 TestMain:$(OBJCS) TestMain.cpp
23
24 .nsl.sc:
25         nsl2sc $<
26
27 SPI_controler_top.o: