freebsd-ports/math/rascal/files/patch-Makefile
Ying-Chieh Liao 52a690992b upgrade to 0.2.5
build with optimization again
2001-06-27 18:26:12 +00:00

21 lines
526 B
Plaintext

--- Makefile.orig Thu Jun 28 02:07:37 2001
+++ Makefile Thu Jun 28 02:11:27 2001
@@ -21,4 +21,3 @@
-CC=g++
-CFLAGS=-O0 -g -DVERSION=\"$(VERSION)\"
+CFLAGS+=-DVERSION=\"$(VERSION)\" -I%%LOCALBASE%%/include
# With the following options you may generate an optimized version of
@@ -38,3 +37,3 @@
-LIBS=-lm -lreadline -lcurses
+LIBS=-lm -lreadline -lcurses -L%%LOCALBASE%%/lib -lgnugetopt
OBJS=y.tab.o lex.yy.o symtab.o value.o
@@ -42,2 +41,6 @@
-include value.mak
+
+.SUFFIXES: .o .c
+
+.c.o: ; ${CXX} ${CFLAGS} -c $*.c