Skip to content

Commit

Permalink
-lPocoFoundation needed by debian Poco 1.36 distro package
Browse files Browse the repository at this point in the history
  • Loading branch information
Ηλίας Καρακουλάκης committed Mar 9, 2012
1 parent 9044cd2 commit fb32bca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Expand Up @@ -39,7 +39,7 @@ GNUTLS := -lgnutls
# for Linux uncomment out next two lines # for Linux uncomment out next two lines
LIBZWAVE := $(wildcard $(OPENZWAVE)/cpp/lib/linux/*.a) LIBZWAVE := $(wildcard $(OPENZWAVE)/cpp/lib/linux/*.a)
LIBUSB := -ludev LIBUSB := -ludev
LIBPOCO := -lPocoNet -lboost_thread -lboost_program_options LIBPOCO := -lPocoNet -lPocoFoundation -lboost_thread -lboost_program_options
LIBTHRIFT := -lthrift LIBTHRIFT := -lthrift


# for Mac OS X comment out above 2 lines and uncomment next 2 lines # for Mac OS X comment out above 2 lines and uncomment next 2 lines
Expand All @@ -54,7 +54,7 @@ LIBS := $(LIBZWAVE) $(GNUTLS) $(LIBTHRIFT) $(LIBUSB) $(LIBPOCO)
%.o : %.c %.o : %.c
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $< $(CC) $(CFLAGS) $(INCLUDES) -o $@ $<


all: main all: openzwave main


gen-cpp/RemoteManager_server.cpp: create_server.rb gen-cpp/RemoteManager.cpp gen-cpp/RemoteManager_server.cpp: create_server.rb gen-cpp/RemoteManager.cpp
ruby1.9.1 create_server.rb --ozwroot=${OPENZWAVE} --thriftroot=$(THRIFT) ruby1.9.1 create_server.rb --ozwroot=${OPENZWAVE} --thriftroot=$(THRIFT)
Expand Down Expand Up @@ -90,7 +90,10 @@ PocoStomp.o: PocoStomp.cpp PocoStomp.h Stomp_sm.cpp StompSocket.o
Main.o: Main.cpp Stomp_sm.o gen-cpp/RemoteManager_server.cpp Main.o: Main.cpp Stomp_sm.o gen-cpp/RemoteManager_server.cpp
g++ $(CFLAGS) -c Main.cpp $(INCLUDES) g++ $(CFLAGS) -c Main.cpp $(INCLUDES)


ozwd: Main.o Stomp_sm.o StompSocket.o PocoStomp.o gen-cpp/RemoteManager.o gen-cpp/ozw_constants.o gen-cpp/ozw_types.o $(LIBZWAVE) openzwave:
cd $(OPENZWAVE)/cpp/build/linux/; make

ozwd: Main.o Stomp_sm.o StompSocket.o PocoStomp.o gen-cpp/RemoteManager.o gen-cpp/ozw_constants.o gen-cpp/ozw_types.o $(LIBZWAVE)
$(LD) -o $@ $(LDFLAGS) Main.o Stomp_sm.o StompSocket.o PocoStomp.o gen-cpp/RemoteManager.o gen-cpp/ozw_constants.o gen-cpp/ozw_types.o $(LIBS) $(LD) -o $@ $(LDFLAGS) Main.o Stomp_sm.o StompSocket.o PocoStomp.o gen-cpp/RemoteManager.o gen-cpp/ozw_constants.o gen-cpp/ozw_types.o $(LIBS)


main: ozwd main: ozwd
Expand Down

0 comments on commit fb32bca

Please sign in to comment.