blob: ea86a39d0fbc3cb7082f115fa2c920883dde7eab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
--- Makefile.orig 2013-10-07 03:52:05.000000000 +0900
+++ Makefile 2013-10-30 15:30:57.000000000 +0900
@@ -1,9 +1,9 @@
VERSION=v2.4
-prefix=/usr/local
+prefix=${PREFIX}
-CC=$(CROSS_COMPILE)gcc
-LD=$(CROSS_COMPILE)ld
+#CC=$(CROSS_COMPILE)gcc
+#LD=$(CROSS_COMPILE)ld
SYS=posix
#SYS=mingw
@@ -21,8 +21,9 @@
DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
OPT=-O2
-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
-LDFLAGS=-Wall $(XLDFLAGS)
+#CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
+CFLAGS+=$(DEF)
+#LDFLAGS=-Wall $(XLDFLAGS)
bindir=$(prefix)/bin
sbindir=$(prefix)/sbin
@@ -35,13 +36,13 @@
LIBS_posix=
LIBS_darwin=
LIBS_mingw=-lws2_32 -lwinmm -lgdi32
-LIB_RTMP=-Llibrtmp -lrtmp
+LIB_RTMP=-lrtmp
LIBS=$(LIB_RTMP) $(CRYPTO_LIB) $(LIBS_$(SYS)) $(XLIBS)
THREADLIB_posix=-lpthread
THREADLIB_darwin=-lpthread
THREADLIB_mingw=
-THREADLIB=$(THREADLIB_$(SYS))
+THREADLIB?=$(THREADLIB_$(SYS))
SLIBS=$(THREADLIB) $(LIBS)
LIBRTMP=librtmp/librtmp.a
@@ -54,9 +55,7 @@
PROGS=rtmpdump rtmpgw rtmpsrv rtmpsuck
-all: $(LIBRTMP) $(PROGS)
-
-$(PROGS): $(LIBRTMP)
+all: $(PROGS)
install: $(PROGS)
-mkdir -p $(BINDIR) $(SBINDIR) $(MANDIR)/man1 $(MANDIR)/man8
@@ -64,11 +63,9 @@
cp rtmpgw$(EXT) rtmpsrv$(EXT) rtmpsuck$(EXT) $(SBINDIR)
cp rtmpdump.1 $(MANDIR)/man1
cp rtmpgw.8 $(MANDIR)/man8
- @cd librtmp; $(MAKE) install
clean:
rm -f *.o rtmpdump$(EXT) rtmpgw$(EXT) rtmpsrv$(EXT) rtmpsuck$(EXT)
- @cd librtmp; $(MAKE) clean
FORCE:
|