summaryrefslogtreecommitdiffstats
path: root/math/rascal/files/patch-Makefile
blob: c408a868e90cab30fb74dfd0989169d6e648e3de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- Makefile.orig	Mon Jun 25 19:38:33 2001
+++ Makefile	Mon Jun 25 19:40:33 2001
@@ -21,4 +21,3 @@
 
-CC=g++
-CFLAGS=-O0 -g -DVERSION=\"$(VERSION)\"
+CXXFLAGS+=-DVERSION=\"$(VERSION)\" -I%%LOCALBASE%%/include
 # with the following options you might be able to optimize
@@ -33,3 +32,3 @@
 
-LIBS=-lm -lreadline -lcurses
+LIBS=-lm -lreadline -lcurses -L%%LOCALBASE%%/lib -lgnugetopt
 OBJS=y.tab.o lex.yy.o symtab.o value.o
@@ -38,2 +37,6 @@
 
+.SUFFIXES:	.o .c
+
+.c.o:	;	${CXX} ${CXXFLAGS} -c $*.c
+
 rascal:	$(OBJS)
@@ -74,6 +77,4 @@
 	$(STRIP)   $(PREFIX)/bin/rascal
-	$(INSTDIR) $(PREFIX)/doc/rascal
 	$(INSTALL) rascal.ps $(PREFIX)/doc/rascal
 	$(INSTALL) rascal.pdf $(PREFIX)/doc/rascal
-	-$(INSTDIR) $(PREFIX)/doc/rascal/html
 	-$(INSTALL) rascal_html/index.html rascal_html/rascal.html rascal_html/*.gif rascal_html/*.css $(PREFIX)/doc/rascal/html
OpenPOWER on IntegriCloud