Skip to content
Browse files

changes to Makefile to compile with the Boost library from Macports

  • Loading branch information...
1 parent ebe5a14 commit cf3dbb9e1a9a7d2ab0d3f272d07f126691fd62ef @CaptSolo committed Jan 23, 2009
Showing with 3 additions and 5 deletions.
  1. +3 −5 rtmpdump/Makefile
8 rtmpdump/Makefile
@@ -1,17 +1,15 @@
+LDFLAGS=-Wall -L/opt/local/lib # needed for MacPorts. using environment vars (LD_LIBRARY_PATH) to show library location did not work :(
+BOOST=-lboost_regex-mt # on MacPorts only multithreaded version is installed by default. could use autoconf to find a variant that exists on a system.
all: rtmpdump
rm -f rtmpdump *.o
rtmpdump: log.o rtmp.o AMFObject.o rtmppacket.o rtmpdump.o
- g++ $(LDFLAGS) $^ -o $@ -lboost_regex
-#rtmpdump: rtmp.cpp log.cpp AMFObject.cpp rtmppacket.cpp rtmpdump.cpp rtmp.h log.h AMFObject.h rtmppacket.h
-# g++ -Wall rtmp.cpp log.cpp AMFObject.cpp rtmppacket.cpp rtmpdump.cpp -o rtmpdump -lboost_regex-mt -I/opt/local/include -L/opt/local/lib
+ g++ $(LDFLAGS) $^ -o $@ $(BOOST)
log.o: log.cpp log.h Makefile
rtmp.o: rtmp.cpp rtmp.h log.h AMFObject.h Makefile

0 comments on commit cf3dbb9

Please sign in to comment.
Something went wrong with that request. Please try again.