summaryrefslogtreecommitdiffstats
path: root/multimedia/replex/files/patch-Makefile
blob: 015b722c4a5e9c82ef285f48e6c4d5ee927d6dde (plain)
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
--- Makefile.orig	Sun Dec 28 17:57:19 2003
+++ Makefile	Tue Jan 20 05:17:32 2004
@@ -2,7 +2,7 @@
 DISTNAME = replex-$(VERSION)
 TARNAME = $(DISTNAME).tar.gz	
 INCS   = -I..
-CFLAGS =  -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
+CFLAGS +=  -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
 LIBS   = -L. 
 MFLAG  = -M
 OBJS = element.o pes.o mpg_common.o ts.o ringbuffer.o avi.o multiplex.o
@@ -26,7 +26,7 @@
 	ar -rcs libreplex.a $(OBJS) 
 
 replex: libreplex.a replex.o
-	$(CC) -o replex replex.o -L. -lreplex
+	$(CC) $(LDFLAGS) -o replex replex.o -L. -lreplex
 
 dist: $(SRC) $(HEADERS) Makefile
 	mkdir $(DISTNAME)
@@ -47,7 +47,7 @@
 
 
 .depend: 
-	$(CC) $(DEFINES) $(MFLAG) $(SRC) $(CSRC) $(CPPSRC) $(INCS)> .depend
+	$(CC) $(CFLAGS) $(DEFINES) $(MFLAG) $(SRC) $(CSRC) $(CPPSRC) $(INCS)> .depend
 
 
 
OpenPOWER on IntegriCloud