-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_Makefile
More file actions
58 lines (49 loc) · 1.24 KB
/
_Makefile
File metadata and controls
58 lines (49 loc) · 1.24 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
CC = g++
CFLAGS = -Wall -std=c++0x -fexceptions
CFLAGS_DEBUG = -g3 -DDEBUG -O0
CFLAGS_RELEASE = -O2
LDFLAGS = -lpthread -lstdc++
INCLUDES = -Iinclude
BINARY = gpshub
.SUFFIXES: .o .cpp
OBJECTS = \
src/ComponentRegistry.o \
src/hubthread/CoordsBroadcastThread.o \
src/hubthread/CoordsUpdateThread.o \
src/hubthread/ServerThread.o \
src/main.o \
src/server/CmdPkg.o \
src/server/CommandHandler.o \
src/server/CommandServer.o \
src/server/GpsDataServer.o \
src/socket/Epoll.o \
src/socket/EpollException.o \
src/socket/Socket.o \
src/socket/SocketException.o \
src/socket/netutil.o \
src/thread/ConditionVariable.o \
src/thread/Mutex.o \
src/thread/RwLock.o \
src/thread/ScopeLock.o \
src/thread/ScopeLockRd.o \
src/thread/ScopeLockWr.o \
src/thread/SyncHashMap.o \
src/thread/SyncHashSet.o \
src/thread/SyncMap.o \
src/thread/SyncSet.o \
src/thread/Thread.o \
src/thread/ThreadException.o \
src/thread/ThreadSyncException.o \
src/user/User.o \
src/user/UserIdGenerator.o \
src/util/CircularBuffer.o
%.o : %.cpp
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
$(BINARY) : $(OBJECTS)
$(CC) $(OBJECTS) $(LDFLAGS) -o $(BINARY)
release : CFLAGS += $(CFLAGS_RELEASE)
release : $(BINARY)
debug : CFLAGS += $(CFLAGS_DEBUG)
debug : $(BINARY)
clean:
rm -fv $(OBJECTS) $(BINARY)