summaryrefslogtreecommitdiff
path: root/math/mcsim/patches/patch-ab
blob: c6e521ffdfec42d3ecea9e99fc15cf1536fa1c7f (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
59
60
61
62
63
64
65
66
67
68
69
70
$NetBSD: patch-ab,v 1.2 2001/02/25 22:14:20 jtb Exp $

--- mod/Makefile.orig	Thu Mar  6 16:14:37 1997
+++ mod/Makefile
@@ -77,16 +77,16 @@
 #		`realclean' removes other stuff not distributed
 #
 
-
+all:	mod
 
 #---------- System Calls ----------
 #
 #>>>>  Define any system dependent calls here
 
-ECHO = echo
-COPY = cp
-DEL = rm
-MKDIR = mkdir
+ECHO ?= echo
+COPY ?= cp
+DEL ?= rm -f
+MKDIR ?= mkdir
 ARC  = tar
 ARCFLAGS = cvf
 MOD = mod
@@ -97,8 +97,8 @@
 #
 #>>>>  Define the COMPILER name and LINKER name here only.
 
-CC = gcc
-LINK = gcc
+#CC =
+LINK = $(CC)
 
 #>>>>  Define PATHS
 #	The include path should be a directory containing header
@@ -137,27 +137,27 @@
 #>>>> To compile with OPTIMIZATION uncomment the following lines
 #
 DEBUG_SYMBOLS = -DNDEBUG
-C_OPTIM_FLAG = -O
+C_OPTIM_FLAG =
 L_OPTIM_FLAG =
 
 #
 #>>>> Include any special warning flags 
 #
-WARNINGS = -Wall
+WARNINGS = -ansi
 
 #--------------------
 #****  You shouldn't need to change these lines.  They are dependent
 #****  only on the above setup.
 
-CFLAGS = $(C_OPTIM_FLAG) $(C_DEBUG_FLAG) $(DEBUG_SYMBOLS) \
+CFLAGS += $(C_OPTIM_FLAG) $(C_DEBUG_FLAG) $(DEBUG_SYMBOLS) \
 	-I $(INCPATH) $(WARNINGS) -DMODGEN
-CLFLAGS = $(L_OPTIM_FLAG) $(L_DEBUG_FLAG)
+CLFLAGS += $(L_OPTIM_FLAG) $(L_DEBUG_FLAG)
 
 
 #
 #>>>> Extra link flags.  Include libraries here
 #
-LFLAGS = -lm
+LFLAGS += -lm