-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (29 loc) · 1.24 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
44
45
OSPL_LIBS = -lpthread -lddskernel -ldcpssacpp
LIBS=-L${OSPL_HOME}/lib ${OSPL_LIBS} -lboost_system -lboost_thread
CFLAGS = -DDEBUG_PRINT -DDEBUG_STATES -Wall -O0 -g -I. -I./include -I${OSPL_HOME}/include/dcps/C++/SACPP -I${OSPL_HOME}/include/sys
CXXFLAGS = -std=c++11
FL_COMP_FLAGS=$(shell fltk-config --cflags --cxxflags)
FL_LINK_FLAGS=$(shell fltk-config --use-images --ldstaticflags)
all: Player
IDL_GENERATED_H= \
ccpp_UberCasino.h \
UberCasinoDcps.h \
UberCasinoDcps_impl.h \
UberCasino.h \
UberCasinoSplDcps.h
IDL_GENERATED_CPP=\
UberCasino.cpp \
UberCasinoDcps.cpp \
UberCasinoDcps_impl.cpp \
UberCasinoSplDcps.cpp
IDL_GENERATED=${IDL_GENERATED_H} ${IDL_GENERATED_CPP}
${IDL_GENERATED}: idl/UberCasino.idl
${OSPL_HOME}/bin/idlpp -l cpp idl/UberCasino.idl
PLAYER_FILES = src/*.cpp
PLAYER_H_FILES = include/*.h
Player: ${IDL_GENERATED_H} ${IDL_GENERATED_CPP} src/main.cpp ${PLAYER_FILES} ${PLAYER_H_FILES}
g++ -o $@ ${CFLAGS} ${CXXFLAGS} $^ ${LIBS} ${FL_COMP_FLAGS} ${FL_LINK_FLAGS}
clean:
-rm -f Player
-rm -f ${IDL_GENERATED_H} ${IDL_GENERATED_CPP}
-rm -f ospl-error.log ospl-info.log