Makefile 1.23 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 \
gladish's avatar
gladish committed
4
     Bridge/AllJoynHelper.cpp \
5
     Bridge/Bridge.cpp \
6 7
     Bridge/BridgeConfig.cpp \
     Bridge/BridgeDevice.cpp \
gladish's avatar
gladish committed
8
     Bridge/ConfigManager.cpp \
gladish's avatar
gladish committed
9 10 11 12
     Common/Log.cpp \
     Adapters/MockAdapter/MockAdapter.cpp \
     Adapters/MockAdapter/MockDevices.cpp \
     Adapters/MockAdapter/MockAdapterDevice.cpp \
gladish's avatar
gladish committed
13
     Adapters/ZigBeeAdapter/ZigBeeAdapter.cpp \
gladish's avatar
gladish committed
14
     main.cpp
jgladish's avatar
jgladish committed
15

16 17
LIBXML_INC=/usr/include/libxml2

gladish's avatar
gladish committed
18 19
ALLJOYN_INSTALL_DIR=/Users/jgladi200/Work/alljoyn/alljoyn-15.09.00a-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
20

21
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)
gladish's avatar
gladish committed
22 23
CXXFLAGS+=-Wno-ignored-qualifiers
LDFLAGS=-L $(ALLJOYN_INSTALL_DIR)/lib -lalljoyn -lcrypto -lxml2 
24
DEV_PROVIDER_OBJS=$(patsubst %.cpp, %.o, $(SRCS))
jgladish's avatar
jgladish committed
25 26
OBJS=$(DEV_PROVIDER_OBJS)

27
all: moc-adapter
jgladish's avatar
jgladish committed
28 29

clean:
gladish's avatar
gladish committed
30 31 32 33
	$(RM) moc-adapter *.o DeviceProviders/*.o Bridge/*.o Common/*.o Adapters/MockAdapter/*.o \
    ZigBeeAdapter/*.o


jgladish's avatar
jgladish committed
34

gladish's avatar
gladish committed
35
moc-adapter: $(OBJS)
jgladish's avatar
jgladish committed
36 37
	$(CXX) -o $@ $^ $(LDFLAGS)