-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
43 lines (30 loc) · 1.31 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
CFLAGS = -g -I. -std=c++11 -m32 -L/home/joe/robocup/trunk/lib/linux32/
#CFLAGS = -g -I. -std=c++11
COMPILE = g++ $(CFLAGS) -c
LINK = g++ $(CFLAGS)
LIBS = -lstdc++ -lpthread -lasound
all: main
Common.o: Common.cpp Common.h
$(COMPILE) Common.cpp -o Common.o
Thread.o: Thread.cpp Thread.h
$(COMPILE) Thread.cpp -o Thread.o
Mutex.o: Mutex.cpp Mutex.h
$(COMPILE) Mutex.cpp -o Mutex.o
Reader.o: Reader.cpp Reader.h Common.h Thread.h Pool.h Mutex.h
$(COMPILE) Reader.cpp -o Reader.o
AlsaReader.o: AlsaReader.cpp AlsaReader.h Common.h Thread.h Pool.h Mutex.h
$(COMPILE) AlsaReader.cpp -o AlsaReader.o
FileWriter.o: FileWriter.cpp FileWriter.h Common.h Thread.h Pool.h Mutex.h
$(COMPILE) FileWriter.cpp -o FileWriter.o
AlsaWriter.o: AlsaWriter.cpp AlsaWriter.h Common.h Thread.h Pool.h Mutex.h
$(COMPILE) AlsaWriter.cpp -o AlsaWriter.o
Detector.o: Detector.cpp Detector.h Common.h Thread.h Pool.h Mutex.h
$(COMPILE) Detector.cpp -o Detector.o
main.o: main.cpp Pool.h Reader.h Detector.h Mutex.h Thread.h
$(COMPILE) main.cpp -o main.o
main: Thread.o Mutex.o Common.o Reader.o AlsaReader.o FileWriter.o AlsaWriter.o Detector.o main.o
$(LINK) main.o Thread.o Mutex.o Common.o Reader.o AlsaReader.o FileWriter.o AlsaWriter.o Detector.o $(LIBS) -o main
test: test.cpp RingBuffer.h
$(LINK) test.cpp -o test
clean :
rm -f main *.o *~