Files
macports-ports/textproc/par/files/patch-protoMakefile.diff
Chris RawnsleyandPerry E. Metzger 4011c6aebe par: add universal support
- use makefile port group (for universal support)
  - add livecheck
2022-01-21 10:44:07 -05:00

34 lines
683 B
Diff

--- protoMakefile.orig 2001-03-09 00:53:25.000000000 +0000
+++ protoMakefile 2021-12-29 22:31:06.000000000 +0000
@@ -47,7 +47,7 @@
# Example (for Solaris 2.x with SPARCompiler C):
# CC = cc -c -O -s -Xc -DDONTFREE
-CC = cc -c
+CC = cc
# Define LINK1 and LINK2 so that the command
#
@@ -61,7 +61,7 @@
# LINK1 = cc -s
# LINK2 = -o
-LINK1 = cc
+LINK1 = $(CC)
LINK2 = -o
# Define RM so that the command
@@ -93,10 +93,10 @@
OBJS = buffer$O charset$O errmsg$O par$O reformat$O
.c$O:
- $(CC) $<
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
par$E: $(OBJS)
- $(LINK1) $(OBJS) $(LINK2) par$E
+ $(LINK1) $(OBJS) $(LINK2) par$E $(LDFLAGS)
buffer$O: buffer.c buffer.h errmsg.h