Makefile 1.29 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
     Bridge/DeviceMain.cpp \
gladish's avatar
gladish committed
10
     Common/Log.cpp \
11
     Common/Variant.cpp \
gladish's avatar
gladish committed
12 13 14
     Adapters/MockAdapter/MockAdapter.cpp \
     Adapters/MockAdapter/MockDevices.cpp \
     Adapters/MockAdapter/MockAdapterDevice.cpp \
gladish's avatar
gladish committed
15
     Adapters/ZigBeeAdapter/ZigBeeAdapter.cpp \
gladish's avatar
gladish committed
16
     main.cpp
jgladish's avatar
jgladish committed
17

18 19
LIBXML_INC=/usr/include/libxml2

gladish's avatar
gladish committed
20 21
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
22

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

29
all: moc-adapter
jgladish's avatar
jgladish committed
30 31

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


jgladish's avatar
jgladish committed
36

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