Makefile 1.11 KB
Newer Older
jgladish's avatar
jgladish committed
1 2
SRCS=DeviceProviders/AllJoynProvider.cpp \
     DeviceProviders/AllJoynService.cpp \
gladish's avatar
gladish committed
3
     Bridge/AllJoynAbout.cpp \
4
     Bridge/Bridge.cpp \
5 6
     Bridge/BridgeConfig.cpp \
     Bridge/BridgeDevice.cpp \
gladish's avatar
gladish committed
7
     Bridge/ConfigManager.cpp \
gladish's avatar
gladish committed
8 9 10 11 12
     Common/Log.cpp \
     Adapters/MockAdapter/MockAdapter.cpp \
     Adapters/MockAdapter/MockDevices.cpp \
     Adapters/MockAdapter/MockAdapterDevice.cpp \
     main.cpp
jgladish's avatar
jgladish committed
13

14 15
LIBXML_INC=/usr/include/libxml2

Jacob Gladish's avatar
Jacob Gladish committed
16 17
#ALLJOYN_INSTALL_DIR=/Users/jgladi200/Work/alljoyn/alljoyn-15.04.00-src/build/darwin/x86/debug/dist/cpp
ALLJOYN_INSTALL_DIR=/home/gladish/work/alljoyn-15.09.00-src/build/linux/x86_64/debug/dist/cpp/
jgladish's avatar
jgladish committed
18

19
CXXFLAGS=-D QCC_OS_GROUP_POSIX -Wall -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -g -std=c++0x -I. -I$(ALLJOYN_INSTALL_DIR)/inc -I$(LIBXML_INC)
Jacob Gladish's avatar
Jacob Gladish committed
20
LDFLAGS=-L $(ALLJOYN_INSTALL_DIR)/lib -lalljoyn -lcrypto -lxml2 -pthread -luuid
21
DEV_PROVIDER_OBJS=$(patsubst %.cpp, %.o, $(SRCS))
jgladish's avatar
jgladish committed
22 23
OBJS=$(DEV_PROVIDER_OBJS)

gladish's avatar
gladish committed
24
all: moc-adapter 
jgladish's avatar
jgladish committed
25 26

clean:
27
	$(RM) MockAdapter core DeviceProviders/*.o Bridge/*.o Common/*.o Adapters/MockAdapter/*.o
jgladish's avatar
jgladish committed
28

gladish's avatar
gladish committed
29
moc-adapter: $(OBJS)
jgladish's avatar
jgladish committed
30 31
	$(CXX) -o $@ $^ $(LDFLAGS)