78901ef083
${PREFIX}/share/examples/cdecl. Also patch sources to rename instances of setprogname() to mysetprogname(), as setprogname() is part of the standard library in NetBSD>1.5.
34 lines
883 B
Text
34 lines
883 B
Text
$NetBSD: patch-ab,v 1.5 2001/05/22 05:48:15 jlam Exp $
|
|
|
|
--- Makefile.orig Tue Jan 16 00:36:38 1996
|
|
+++ Makefile Tue May 22 01:33:10 2001
|
|
@@ -15,21 +15,21 @@
|
|
#
|
|
# add -DUSE_READLINE To compile in support for the GNU readline library.
|
|
|
|
-CFLAGS= -s -O2 -DUSE_READLINE
|
|
-CC= gcc
|
|
+CFLAGS+= -DUSE_READLINE
|
|
+#CC= gcc
|
|
LIBS= -lreadline -ltermcap
|
|
ALLFILES= makefile cdgram.y cdlex.l cdecl.c cdecl.1 testset testset++
|
|
-BINDIR= /usr/bin
|
|
-MANDIR= /usr/man/man1
|
|
-CATDIR= /usr/man/cat1
|
|
-INSTALL= install -c
|
|
-INSTALL_DATA= install -c -m 644
|
|
+BINDIR= ${PREFIX}/bin
|
|
+MANDIR= ${PREFIX}/man/man1
|
|
+CATDIR= ${PREFIX}/man/cat1
|
|
+INSTALL= ${BSD_INSTALL_PROGRAM}
|
|
+INSTALL_DATA= ${BSD_INSTALL_MAN}
|
|
|
|
cdecl: c++decl
|
|
ln c++decl cdecl
|
|
|
|
c++decl: cdgram.c cdlex.c cdecl.c
|
|
- $(CC) $(CFLAGS) -o c++decl cdecl.c $(LIBS)
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -o c++decl cdecl.c $(LIBS)
|
|
rm -f cdecl
|
|
|
|
cdlex.c: cdlex.l
|