forked from lince/libmessenger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (28 loc) · 880 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
34
35
36
37
38
39
40
CC= g++
HEADERS_DIR= /usr/local/include/libmessenger
LIB_DIR= /usr/local/lib
TARGET_LIB= libmessenger.so
PROGS= $(TARGET_LIB) amazontest
INCLUDES= \
include/Messenger.h \
include/MsgListener.h
SOURCES= \
src/Messenger.cpp
LIBS= -lcpputil -lactivemq-cpp -lssl
PATHS= -I/usr/local/include/activemq-cpp-3.4.0/ -I/usr/local/apr/include/apr-1/
INSTALL_HEADERS = $(INCLUDES)
ALL: $(PROGS)
$(TARGET_LIB): $(INCLUDES) $(SOURCES)
$(CC) $(SOURCES) $(LIBS) $(PATHS) \
-shared -fPIC -o $(TARGET_LIB)
amazontest: $(TARGET_LIB) test/amazontest.cpp
$(CC) test/amazontest.cpp -o test/amazontest $(PATHS) -L. -I./include -lmessenger
clean:
rm -f $(PROGS)
uninstall:
rm -rf $(HEADERS_DIR)
rm -rf $(LIB_DIR)/$(TARGET_LIB)
install: $(TARGET_LIB)
install -d $(HEADERS_DIR)
install -t $(HEADERS_DIR) $(INSTALL_HEADERS)
install -t $(LIB_DIR) $(TARGET_LIB)