summaryrefslogtreecommitdiff
path: root/math/rascal/files/patch-Makefile
blob: 2cf701a1da2f7c470a2b8ba251e11a87d1f7c710 (plain) (blame)
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
28
--- Makefile.orig	Mon Dec  2 11:51:54 2002
+++ Makefile	Mon Dec  2 11:53:24 2002
@@ -19,8 +19,7 @@
 
 VERSION=0.3.2
 
-CC=g++
-CFLAGS=-O0 -fno-rtti -g -DVERSION=\"$(VERSION)\"
+CFLAGS+=-DVERSION=\"$(VERSION)\" -I%%LOCALBASE%%/include
 # With the following options you may generate an optimized version of
 # Rascal, but you will need a lot of time (takes 20min, that is 15* 
 # longer, on my machine) and physical memory (256 MB physical memory 
@@ -38,10 +37,14 @@
 RMDIR=rm -rf
 INSTDIR=install -d
 
-LIBS=-lm -lreadline -lcurses
+LIBS+=-lm -lreadline -lcurses ${LDFLAGS}
 OBJS=y.tab.o lex.yy.o symtab.o value.o
 
 -include value.mak
+
+.SUFFIXES:	.o .c
+
+.c.o:	;	${CXX} ${CFLAGS} -c $*.c
 
 all: rascal