[rtmpdump] r10 - Makefile MakefileARM MakefileCYGWIN MakefileWIN32
hyc
subversion at mplayerhq.hu
Fri Oct 30 02:45:15 CET 2009
Author: hyc
Date: Fri Oct 30 02:45:15 2009
New Revision: 10
Log:
Parametrize Makefile, get rid of other Makefiles
Deleted:
MakefileARM
MakefileCYGWIN
MakefileWIN32
Modified:
Makefile
Modified: Makefile
==============================================================================
--- Makefile Fri Oct 30 02:26:19 2009 (r9)
+++ Makefile Fri Oct 30 02:45:15 2009 (r10)
@@ -1,11 +1,22 @@
-CC=gcc
-CXX=g++
-LD=ld
+#CROSS_COMPILE=arm-angstrom-linux-gnueabi-
+#CROSS_COMPILE=mingw32-
+CC=$(CROSS_COMPILE)gcc
+CXX=$(CROSS_COMPILE)g++
+LD=$(CROSS_COMPILE)ld
+#STAGING=/OE/tmp/staging/armv7a-angstrom-linux-gnueabi
+#INC=-I$(STAGING)/usr/include
OPT=-O2
-CFLAGS=-Wall $(OPT)
-CXXFLAGS=-Wall $(OPT)
+CFLAGS=-Wall $(INC) $(OPT)
+CXXFLAGS=-Wall $(INC) $(OPT)
LDFLAGS=-Wall
+#LIBS=-lws2_32 -lwinmm -lcrypto -lgdi32
+LIBS=-lssl -lcrypto
+THREADLIB=-lpthread
+SLIBS=$(THREADLIB) $(LIBS)
+
+#EXT=.exe
+EXT=
all: rtmpdump
@@ -13,10 +24,10 @@ clean:
rm -f *.o
streams: bytes.o log.o rtmp.o AMFObject.o rtmppacket.o streams.o parseurl.o dh.o handshake.o
- $(CXX) $(LDFLAGS) $^ -o $@_x86 -lpthread -lssl -lcrypto
+ $(CXX) $(LDFLAGS) $^ -o $@$(EXT) $(SLIBS)
rtmpdump: bytes.o log.o rtmp.o AMFObject.o rtmppacket.o rtmpdump.o parseurl.o dh.o handshake.o
- $(CXX) $(LDFLAGS) $^ -o $@_x86 -lssl -lcrypto
+ $(CXX) $(LDFLAGS) $^ -o $@$(EXT) $(LIBS)
bytes.o: bytes.c bytes.h Makefile
log.o: log.c log.h Makefile
More information about the rtmpdump
mailing list