Skip to content

Commit

Permalink
changes to Makefile to compile with the Boost library from Macports
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptSolo committed Jan 23, 2009
1 parent ebe5a14 commit cf3dbb9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rtmpdump/Makefile
@@ -1,17 +1,15 @@
CFLAGS=-Wall CFLAGS=-Wall
CXXFLAGS=-Wall CXXFLAGS=-Wall
LDFLAGS=-Wall 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 all: rtmpdump


clean: clean:
rm -f rtmpdump *.o rm -f rtmpdump *.o


rtmpdump: log.o rtmp.o AMFObject.o rtmppacket.o rtmpdump.o rtmpdump: log.o rtmp.o AMFObject.o rtmppacket.o rtmpdump.o
g++ $(LDFLAGS) $^ -o $@ -lboost_regex g++ $(LDFLAGS) $^ -o $@ $(BOOST)

#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


log.o: log.cpp log.h Makefile log.o: log.cpp log.h Makefile
rtmp.o: rtmp.cpp rtmp.h log.h AMFObject.h Makefile rtmp.o: rtmp.cpp rtmp.h log.h AMFObject.h Makefile
Expand Down

0 comments on commit cf3dbb9

Please sign in to comment.