-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
33 lines (21 loc) · 788 Bytes
/
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
CC = g++
CPPFLAGS = -Wall -g
# Uncomment the following line for a verbose client
#CPPFLAGS = -Wall -g -D __UDP_CLIENT_VERBOSE__
#Put here the name of your driver class
DRIVER_CLASS = SimpleDriver
#Put here the filename of your driver class header
DRIVER_INCLUDE = '"$(DRIVER_CLASS).h"'
DRIVER_OBJ = $(DRIVER_CLASS).o
EXTFLAGS = -D __DRIVER_CLASS__=$(DRIVER_CLASS) -D __DRIVER_INCLUDE__=$(DRIVER_INCLUDE)
OBJECTS = WrapperBaseDriver.o SimpleParser.o CarState.o CarControl.o SimplePID.o $(DRIVER_OBJ)
all: $(OBJECTS) client
.SUFFIXES : .o .cpp .c
.cpp.o :
$(CC) $(CPPFLAGS) $(EXTFLAGS) -c $<
.c.o :
$(CC) $(CPPFLAGS) $(EXTFLAGS) -c $<
client: client.cpp $(OBJECTS)
$(CC) $(CPPFLAGS) $(EXTFLAGS) -o client client.cpp $(OBJECTS)
clean:
rm -f *.o client