summaryrefslogtreecommitdiff
path: root/math/aribas/patches/patch-aa
blob: 019fb64f76909e8811661d1cfed57907a6091763 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-aa,v 1.2 2001/01/28 05:44:52 jtb Exp $

--- Makefile.orig	Fri Jan 26 09:05:22 2001
+++ Makefile
@@ -4,8 +4,8 @@
 # date: 2001-01-25
 #############################################################
 
-CC = cc
-CFLAGS = -DUNiX -O
+#CC = cc
+#CFLAGS = -DUNiX -O
 # for some compilers it might be necessary to remove the -O flag
 # If you have the GNU gcc compiler on your system, you may wish
 # to use gcc. Then outcomment the first two lines and activate 
@@ -14,7 +14,7 @@
 #CC = gcc
 #CFLAGS = -DUNiX -DPROTO -O -v
 
-MEMFLAG = -DMEM=6
+#MEMFLAG = -DMEM=6
 # MEM may be set to any integer value from 1 to 16.
 # This is the size of the ARIBAS heap in Megabytes
 # The value should not exceed one half of the RAM of your machine
@@ -34,14 +34,14 @@
 terminal.o:	logscr.inc
 
 .c.o:
-	$(CC) $(CFLAGS) -c $<
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
 
 alloc.o:    alloc.c common.h
-	$(CC) $(CFLAGS) $(MEMFLAG) -c alloc.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(MEMFLAG) -c alloc.c
 
 $(PROGRAM): $(OBJECTS)
 	$(CC) -o $(PROGRAM) $(OBJECTS)
-	strip $(PROGRAM)
+
 clean:
 	\rm *.o