-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (21 loc) · 733 Bytes
/
Makefile
File metadata and controls
38 lines (21 loc) · 733 Bytes
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
CXX:=gcc
LIBS= -Lsolapi/lib
FLAGS= -shared -DKXVER=3 -fPIC -D_LINUX_X86_64 -lpthread
IGNORE_WARN = -Wno-discarded-qualifiers -Wno-incompatible-pointer-types
DEBUGFLAGS= -g
LINKFLAGS= -lsolclient
INCLUDE= -Iinclude
OUT= -o lib/solace.so
FILES= src/solace.c src/solace_k.c src/cb.c
LINKS = -lsolclient -lrt
OTHER = -DPROVIDE_LOG_UTILITIES
COMPILE=$(CXX) ${LIBS} ${FLAGS} ${INCLUDE} ${FILES} ${OUT}
all: build
build: clean prod
prod:
$(CXX) ${LIBS} ${FLAGS} ${LINKFLAGS} ${INCLUDE} ${OTHER} ${FILES} ${OUT} ${LINKS} ${IGNORE_WARN}
clean:
if ! test -d lib;then mkdir lib/;fi
rm -f lib/solace.*
debug:
$(CXX) ${DEBUGFLAGS} ${LIBS} ${FLAGS} ${LINKFLAGS} ${INCLUDE} ${OTHER} ${FILES} ${OUT} ${LINKS}