freebsd-ports/cad/chipmunk/files/patch-ag
Ying-Chieh Liao 797d6cd4f1 upgrade to 5.59
PR:		38227
Submitted by:	Ports Fury
2002-05-21 03:30:49 +00:00

42 lines
801 B
Plaintext

--- netcmp/Makefile.orig Sat Aug 18 07:49:31 2001
+++ netcmp/Makefile Sat May 18 14:46:26 2002
@@ -22,7 +22,7 @@
#
# netcmp makefile
-BINDIR= ../bin
+BINDIR= ${PREFIX}/bin
##
## (1) Choosing your compiler
@@ -48,7 +48,7 @@
## For SGI, cc is recommended
CHIPMUNKCC = gcc -O3
-CC = $(CHIPMUNKCC)
+CC ?= $(CHIPMUNKCC)
##
## (2) Adding appropriate flags
@@ -90,15 +90,17 @@
## -ansi
##
+OTHERLIBS = -lcompat
+
CHIPMUNKFLAGS =
-CFLAGS = $(CHIPMUNKFLAGS)
+CFLAGS += -DBSD -DF_OK
netcmp: main.o parser.o datastruct.o compare.o
- $(CC) parser.o datastruct.o compare.o main.o -o netcmp
+ $(CC) parser.o datastruct.o compare.o main.o $(OTHERLIBS) -o netcmp
install: netcmp
- cp netcmp $(BINDIR)
+ ${BSD_INSTALL_PROGRAM} netcmp $(BINDIR)
clean:
-rm -f *.o netcmp