package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / cgic / 0001-prepare_makefile.patch
blob15adc4cda2dd8df7669228c2daa395a5014e3ce3
1 Makefile: fix for cross-compilation
3 Probably-Signed-off-by: Dave Bender <bender@benegon.com>
4 [yann.morin.1998@free.fr: patch was made by Dave, but he
5 forgot his SoB line, so I added it]
6 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
7 diff -rupN cgic206/Makefile cgic206-br/Makefile
8 --- cgic206/Makefile 2014-03-16 18:17:11.000000000 -0400
9 +++ cgic206-br/Makefile 2015-01-16 11:18:03.714874000 -0500
10 @@ -1,15 +1,14 @@
11 -CFLAGS=-g -Wall
12 -CC=gcc
13 -AR=ar
14 -RANLIB=ranlib
15 LIBS=-L./ -lcgic
17 all: libcgic.a cgictest.cgi capture
19 install: libcgic.a
20 - cp libcgic.a /usr/local/lib
21 - cp cgic.h /usr/local/include
22 - @echo libcgic.a is in /usr/local/lib. cgic.h is in /usr/local/include.
23 + cp libcgic.a $(PREFIX)/usr/lib
24 + cp cgic.h $(PREFIX)/usr/include
25 + @echo libcgic.a is in $(PREFIX)/usr/lib. cgic.h is in $(PREFIX)/usr/include.
27 +cgi.o: cgic.c cgic.h
28 + $(CC) $(CFLAGS) cgic.c -o cgic.o
30 libcgic.a: cgic.o cgic.h
31 rm -f libcgic.a
32 @@ -19,10 +18,10 @@ libcgic.a: cgic.o cgic.h
33 #mingw32 and cygwin users: replace .cgi with .exe
35 cgictest.cgi: cgictest.o libcgic.a
36 - gcc cgictest.o -o cgictest.cgi ${LIBS}
37 + $(CC) cgictest.o -o cgictest.cgi ${LIBS}
39 capture: capture.o libcgic.a
40 - gcc capture.o -o capture ${LIBS}
41 + $(CC) capture.o -o capture ${LIBS}
43 clean:
44 rm -f *.o *.a cgictest.cgi capture