-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
22 lines (17 loc) · 898 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
include makefile.inc
OBJDIR:=.lib
all:
cd src && $(MAKE)
cd src/backend && $(MAKE)
cd src/backend/tcp && $(MAKE)
cd src/util && $(MAKE)
# stuff for current dir
$(CC) $(CC_FLAGS) $(INCLUDE) -Iexternal -Isrc -Iinclude .lib/*.o example/loopback/main.cpp -Lexternal/.lib -lrt -lboost_serialization -lboost_chrono -lboost_system -o example/loopback/main
# $(CC) $(CC_FLAGS) $(INCLUDE) -Iexternal -Isrc -Iinclude .lib/*.o example/shm/main.cpp -Lexternal/.lib -lrt -lboost_serialization -lboost_chrono -lboost_system -o example/shm/main
$(CC) $(CC_FLAGS) $(INCLUDE) -Iexternal -Isrc -Iinclude .lib/*.o example/tcp/main.cpp -Lexternal/.lib -lrt -lboost_serialization -lboost_chrono -lboost_system -o example/tcp/main
.PHONY: all
clean:
rm -f $(OBJDIR)/*.o example/loopback/main example/shm/main example/tcp/main
# make PROG="asdf" run
run:
LD_LIBRARY_PATH=external/.lib/ example/${PROG}/main