summaryrefslogtreecommitdiff
path: root/lang/pforth/patches/patch-aa
blob: 10bcda4178111d5bab793322b8cdee717e303b03 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
$NetBSD: patch-aa,v 1.1.1.1 2001/01/19 22:27:00 jtb Exp $

--- makefile.orig	Tue Apr  7 00:43:01 1998
+++ makefile
@@ -27,7 +27,7 @@
         -Wmissing-declarations
         
 CCOPTS = -DPF_SUPPORT_FP $(FULL_WARNINGS)
-COMPILER = gcc
+COMPILER = $(CC)
 
 EMBCCOPTS = -DPF_NO_INIT -DPF_NO_MALLOC -DPF_NO_FILEIO \
     -DPF_NO_CLIB -DPF_STATIC_DIC
@@ -44,10 +44,10 @@
 COMPILE = $(COMPILER) $(CCOPTS) $(CDEFS)
 
 ${OBJECTDIR}/%.o:  $(PFINCLUDES)  ${SOURCEDIR}/%.c
-	$(COMPILE) -O -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c
-	
+	$(COMPILE) $(CFLAGS) -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c
+
 ${EMBOBJECTDIR}/%.o:  $(PFINCLUDES) ${SOURCEDIR}/%.c ${SOURCEDIR}/pfdicdat.h 
-	$(COMPILE) -O -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS)
+	$(COMPILE) $(CFLAGS) -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS)
 
 all: pforth pforth.dic
 
@@ -62,26 +62,26 @@
 	echo ${PFOBJS}
 	echo "EMBEDDED OBJECT FILES ------------------"
 	echo ${PFEMBOBJS}
-	
+
 # build pforth by compiling 'C' source
 pforth: $(PFINCLUDES) $(PFOBJS)
 	$(COMPILER) $(PFOBJS) -lm -o pforth
 
 # build basic dictionary by running newly built pforth and including system.fth
 pforth.dic: pforth
-	pforth -i system.fth
+	./pforth -i system.fth
 
 ${SOURCEDIR}/pfdicdat.h: pforth pforth.dic
 	@(echo 'INCLUDE utils/savedicd.fth'; \
           echo 'SDAD';         \
           echo 'bye')                                 | \
-	pforth -dpforth.dic
+	./pforth -dpforth.dic
 	cp pfdicdat.h ${SOURCEDIR}
 
 
 pfemb: $(PFINCLUDES) $(PFEMBOBJS)
 	$(COMPILER) $(PFEMBOBJS) -lm -o pfemb
-	
+
 clean:
 	rm -f $(PFOBJS) $(PFEMBOBJS) pforth *.dic core ${SOURCEDIR}/pfdicdat.h pfemb