Makefile 725 Bytes
Newer Older
1

2
3
4
5
std-objs = ../../../common/src/Common.o ../../../hardware/src/Hw.o

test-objs = test.o BufferSave.o
test-ext-objs = ../src/FrameBuilder.o
6
	
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
testsimulator-objs = testsimulator.o 
testsimulator-ext-objs = ../src/Simulator.o ../src/FrameBuilder.o $(std-objs)

INC = -I../include -I../../../common/include -I../../../hardware/include 
CXXFLAGS += $(INC) -Wall -pthread
LDFLAGS = -pthread

all: 	clean test testsimulator

test:	$(test-objs)
	$(CXX) $(LDFLAGS) -o $@ $+ $(test-ext-objs) 

testsimulator: $(testsimulator-objs)
	$(CXX) $(LDFLAGS) -o $@ $+ $(testsimulator-ext-objs) 

clean: test-clean testsimulator-clean

test-clean:
	rm -f $(test-objs) test *.edf
26

27
28
testsimulator-clean:
	rm -f $(testsimulator-objs) testsimulator
29