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

13 14
LIBXML_INC=/usr/include/libxml2

jgladish's avatar
jgladish committed
15 16
ALLJOYN_INSTALL_DIR=/Users/jgladi200/Work/alljoyn/alljoyn-15.04.00-src/build/darwin/x86/debug/dist/cpp

17 18
CXXFLAGS=-D QCC_OS_GROUP_POSIX -Wall -Wextra -g -std=c++0x -I.  -I$(ALLJOYN_INSTALL_DIR)/inc -I$(LIBXML_INC)
LDFLAGS=-L $(ALLJOYN_INSTALL_DIR)/lib -lalljoyn -lcrypto -lxml2
jgladish's avatar
jgladish committed
19 20 21
DEV_PROVIDER_OBJS=$(patsubst %.cpp, %.o,$(SRCS))
OBJS=$(DEV_PROVIDER_OBJS)

gladish's avatar
gladish committed
22
all: moc-adapter 
jgladish's avatar
jgladish committed
23 24

clean:
gladish's avatar
gladish committed
25 26
	$(RM) MockAdapter core DeviceProviders/*.o Bridge/*.o Common/*.o Adapters/MockAdapter/*.o \
    Adapters/ZigBee/*.o
jgladish's avatar
jgladish committed
27

gladish's avatar
gladish committed
28 29

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