summaryrefslogtreecommitdiff
path: root/comms/gkermit/files/patch-aa
blob: cd972eb02a554ce3ac283603a3a14a375eb3ef7a (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
--- Makefile.orig	Tue Jan 11 08:42:38 2000
+++ Makefile	Tue Jan 11 08:44:12 2000
@@ -37,8 +37,10 @@
 
 # Default compiler and flags
 
-CC=cc
-CFLAGS= -DPOSIX -O $(KFLAGS)
+#CC=cc
+#CFLAGS= -DPOSIX -O $(KFLAGS)
+DEFS=-DPOSIX
+CFLAGS+=	$(DEFS)
 
 # Object files
 
@@ -70,13 +72,13 @@
 		$(CC) -o gkermit $(OBJECTS)
 
 bsd:		gwart
-		$(MAKE) "CC=$(CC)" "CFLAGS=-DBSD -O $(KFLAGS)" gkermit
+		$(MAKE) "CC=$(CC)" "DEFS=-DBSD $(KFLAGS)" gkermit
 
 sysv:		gwart
-		$(MAKE) "CC=$(CC)" "CFLAGS=-DSYSV -O $(KFLAGS)" gkermit
+		$(MAKE) "CC=$(CC)" "DEFS=-DSYSV $(KFLAGS)" gkermit
 
 posix:		gwart
-		$(MAKE) "CC=$(CC)" "CFLAGS=-DPOSIX -O $(KFLAGS)" gkermit
+		$(MAKE) "CC=$(CC)" "DEFS=-DPOSIX $(KFLAGS)" gkermit
 
 sysvx:		gwart
 		$(MAKE) "CC=$(CC)" \