Makefile 903 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
     Common/Log.cpp \
     Adapters/MockAdapter/MockAdapter.cpp \
     Adapters/MockAdapter/MockDevices.cpp \
     Adapters/MockAdapter/MockAdapterDevice.cpp \
     main.cpp
jgladish's avatar
jgladish committed
11

12 13
LIBXML_INC=/usr/include/libxml2

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

16 17
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
18 19 20
DEV_PROVIDER_OBJS=$(patsubst %.cpp, %.o,$(SRCS))
OBJS=$(DEV_PROVIDER_OBJS)

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

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

gladish's avatar
gladish committed
26 27

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