summaryrefslogtreecommitdiff
path: root/math/aamath/files/patch-Makefile
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2009-03-31 11:08:44 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2009-03-31 11:08:44 +0000
commit3149e59fcbb465dc7abeeb231964d7ce594664c1 (patch)
tree1a36ed1f05a46e930f7304f21907615f6677ac25 /math/aamath/files/patch-Makefile
parentReformat port description. (diff)
- Fix parallel build, mark port as MAKE_JOBS_SAFE
- Cleanup Makefile while here
Notes
Notes: svn path=/head/; revision=231381
Diffstat (limited to 'math/aamath/files/patch-Makefile')
-rw-r--r--math/aamath/files/patch-Makefile33
1 files changed, 25 insertions, 8 deletions
diff --git a/math/aamath/files/patch-Makefile b/math/aamath/files/patch-Makefile
index a3476d1e8e37..1557574f9a77 100644
--- a/math/aamath/files/patch-Makefile
+++ b/math/aamath/files/patch-Makefile
@@ -1,18 +1,35 @@
---- Makefile Wed Jun 22 22:12:18 2005
-+++ Makefile.port Tue Sep 6 13:29:09 2005
-@@ -3,9 +3,9 @@
+--- Makefile.orig
++++ Makefile
+@@ -1,17 +1,22 @@
+-CXX = g++
+-LD = g++
++CXX ?= g++
++LD = $(CXX)
CXXFILES = parser.cc lexer.cc expr.cc canvas.cc aamath.cc
OBJS = $(CXXFILES:.cc=.o)
TARGET = aamath
-CFLAGS = -Wall -O2 -g -DUSE_READLINE
-+CFLAGS += -Wall -g -DUSE_READLINE
- LFLAGS = -g
--LIBS = -lreadline -ltermcap
-+LIBS = $(LDFLAGS) -ltermcap
+-LFLAGS = -g
++CFLAGS += -Wall -DUSE_READLINE
+ LIBS = -lreadline -ltermcap
$(TARGET): $(OBJS)
$(LD) $(LFLAGS) $(OBJS) -o $@ $(LIBS)
-@@ -21,3 +21,5 @@
+
+-parser.cc parser.h: parser.y
+- yacc -d parser.y && mv y.tab.c parser.cc && mv y.tab.h parser.h
++yacc: parser.y
++ yacc -d parser.y
++
++parser.cc: yacc
++ mv y.tab.c parser.cc
++
++parser.h: yacc
++ mv y.tab.h parser.h
+
+ lexer.cc: lexer.l parser.h
+ lex lexer.l && mv lex.yy.c lexer.cc
+@@ -21,3 +26,5 @@
clean:
rm -f *.o lexer.cc parser.h parser.cc $(TARGET)