aboutsummaryrefslogtreecommitdiffstats
path: root/math/rascal/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/rascal/files/patch-Makefile')
-rw-r--r--math/rascal/files/patch-Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/math/rascal/files/patch-Makefile b/math/rascal/files/patch-Makefile
new file mode 100644
index 00000000000..71d3cf82c04
--- /dev/null
+++ b/math/rascal/files/patch-Makefile
@@ -0,0 +1,43 @@
+--- Makefile.orig Wed May 23 09:25:03 2001
++++ Makefile Fri May 25 02:58:44 2001
+@@ -15,23 +15,25 @@
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ #
+-PREFIX=/usr/local
+
+ VERSION=0.2.1
+
+-CC=g++
+-CFLAGS=-O0 -fno-default-inline -g -DVERSION=\"$(VERSION)\"
++CXXFLAGS+=-fno-default-inline -DVERSION=\"$(VERSION)\" -I%%LOCALBASE%%/include
+ INSTALL=install -m 755
+ STRIP=strip -g
+ RM=rm -f
+ RMDIR=rm -rf
+ INSTDIR=install -d
+
+-LIBS=-lm -lreadline -lcurses
++LIBS=-lm -lreadline -lcurses -L%%LOCALBASE%%/lib -lgnugetopt
+ OBJS=y.tab.o lex.yy.o symtab.o value.o
+
+ -include value.mak
+
++.SUFFIXES: .o .c
++
++.c.o: ; ${CXX} ${CXXFLAGS} -c $*.c
++
+ rascal: $(OBJS)
+ g++ -o rascal $(CFLAGS) $(OBJS) $(LIBS)
+ test: rascal
+@@ -64,10 +66,8 @@
+ $(INSTALL) ./rascal $(PREFIX)/bin/
+ $(INSTALL) ./rascal.rc $(PREFIX)/bin/
+ $(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/*.gif rascal_html/*.css $(PREFIX)/doc/rascal/html
+
+ source-archive: clean