2010-02-26 13:46:26 -05:00
|
|
|
$OpenBSD: patch-Makefile,v 1.5 2010/02/26 18:46:26 sthen Exp $
|
2009-04-17 13:56:50 -04:00
|
|
|
|
|
|
|
avoid gmake-isms
|
|
|
|
|
2010-02-26 13:46:26 -05:00
|
|
|
--- Makefile.orig Sun Feb 21 17:31:12 2010
|
|
|
|
+++ Makefile Tue Feb 23 21:43:51 2010
|
|
|
|
@@ -6,7 +6,7 @@ OPT=-O2
|
|
|
|
CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
|
2009-11-18 20:06:07 -05:00
|
|
|
LDFLAGS=-Wall $(XLDFLAGS)
|
2010-02-26 13:46:26 -05:00
|
|
|
LIBS=-lcrypto -lz
|
2009-11-18 20:06:07 -05:00
|
|
|
-THREADLIB=-lpthread
|
|
|
|
+THREADLIB=-pthread
|
|
|
|
SLIBS=$(THREADLIB) $(LIBS)
|
2010-02-26 13:46:26 -05:00
|
|
|
RTMP_OBJS=rtmp.o log.o amf.o
|
|
|
|
|
|
|
|
@@ -35,16 +35,16 @@ clean:
|
|
|
|
rm -f *.o rtmpdump$(EXT) streams$(EXT) rtmpsrv$(EXT) rtmpsuck$(EXT)
|
2009-04-17 13:56:50 -04:00
|
|
|
|
2010-02-26 13:46:26 -05:00
|
|
|
rtmpdump: rtmpdump.o $(RTMP_OBJS) parseurl.o hashswf.o
|
|
|
|
- $(CC) $(LDFLAGS) $^ -o $@$(EXT) $(LIBS)
|
|
|
|
+ $(CC) $(LDFLAGS) $> -o $@$(EXT) $(LIBS)
|
2009-04-17 13:56:50 -04:00
|
|
|
|
2010-02-26 13:46:26 -05:00
|
|
|
rtmpsrv: rtmpsrv.o $(RTMP_OBJS) thread.o
|
2009-12-26 03:49:08 -05:00
|
|
|
- $(CC) $(LDFLAGS) $^ -o $@$(EXT) $(SLIBS)
|
|
|
|
+ $(CC) $(LDFLAGS) $> -o $@$(EXT) $(SLIBS)
|
2009-04-17 13:56:50 -04:00
|
|
|
|
2010-02-26 13:46:26 -05:00
|
|
|
rtmpsuck: rtmpsuck.o $(RTMP_OBJS) hashswf.o thread.o
|
|
|
|
- $(CC) $(LDFLAGS) $^ -o $@$(EXT) $(SLIBS)
|
|
|
|
+ $(CC) $(LDFLAGS) $> -o $@$(EXT) $(SLIBS)
|
|
|
|
|
|
|
|
streams: streams.o $(RTMP_OBJS) parseurl.o hashswf.o thread.o
|
|
|
|
- $(CC) $(LDFLAGS) $^ -o $@$(EXT) $(SLIBS)
|
|
|
|
+ $(CC) $(LDFLAGS) $> -o $@$(EXT) $(SLIBS)
|
2009-04-28 20:51:23 -04:00
|
|
|
|
2009-11-18 20:06:07 -05:00
|
|
|
log.o: log.c log.h Makefile
|
2009-12-26 03:49:08 -05:00
|
|
|
parseurl.o: parseurl.c parseurl.h log.h Makefile
|