summaryrefslogtreecommitdiff
path: root/lang/ratfor/files/patch-Makefile
blob: b686e9ab66b8de1c95991d0852299f69d2d483df (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
29
30
31
32
33
34
--- Makefile.orig	2020-09-23 11:00:09 UTC
+++ Makefile
@@ -11,7 +11,7 @@
 #	On GNU,		        use S_CHAR="char"
 #
 
-CFLAGS+=	-DF77 -DS_CHAR="char"
+CFLAGS+=	-DF77 -DS_CHAR="signed char" -Wno-error=return-type
 #CFLAGS+=	-DS_CHAR="char"
 OBJS=		rat4.o lookup.o getopt.o
 
@@ -26,13 +26,18 @@ ratfor: ratfor77
 clean:
 	rm -f *.o *~ ratfor ratfor77 a.out test testw test.f testw.f
 
-test: ratfor
+.f:
+	${FC} -o $@ $<
+
+test: test.f
+
+test.f: ratfor
 	./ratfor -o test.f test.r
-	f77 -o test test.f
 
-testw: ratfor
+testw: testw.f
+
+testw.f: ratfor
 	./ratfor -o testw.f testw.r
-	f77 -o testw testw.f
 
 tests: test testw
 	./test