mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
This project contains no C++ code so use CC not CXX as the linker. Use MacPorts CFLAGS, CPPFLAGS, LDFLAGS. Fixes universal variant among other things. Closes: https://trac.macports.org/ticket/62285 Also modernize checksums and update homepage.
23 lines
876 B
Diff
23 lines
876 B
Diff
--- examples/Makefile.in.orig 2003-03-24 02:48:21.000000000 -0600
|
|
+++ examples/Makefile.in 2021-02-14 03:22:48.000000000 -0600
|
|
@@ -1,10 +1,15 @@
|
|
CC=@CC@
|
|
+INCLUDE=-I../include
|
|
+CFLAGS=${INCLUDE} -Wall -O3 @CFLAGS@
|
|
+CPPFLAGS=@CPPFLAGS@
|
|
+LDFLAGS=@LDFLAGS@
|
|
+LIBNAME=../libsgml.a
|
|
|
|
all:
|
|
- ${CC} -I../include -Wall -O3 test.c -o test ../libsgml.a
|
|
- ${CC} -I../include -Wall -O3 testhtml.c -o testhtml ../libsgml.a
|
|
- ${CC} -I../include -Wall -O3 testxml.c -o testxml ../libsgml.a
|
|
- ${CC} -I../include -Wall -O3 variant.c -o variant ../libsgml.a
|
|
+ ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c -o test ${LIBNAME}
|
|
+ ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} testhtml.c -o testhtml ${LIBNAME}
|
|
+ ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} testxml.c -o testxml ${LIBNAME}
|
|
+ ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} variant.c -o variant ${LIBNAME}
|
|
|
|
clean:
|
|
rm -f testhtml testxml test variant
|