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
17 all: libcgic.a cgictest.cgi capture
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.
28 + $(CC) $(CFLAGS) cgic.c -o cgic.o
30 libcgic.a: cgic.o cgic.h
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}
44 rm -f *.o *.a cgictest.cgi capture