about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-22 18:05:57 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-22 18:06:20 -0800
commit97a0254042e991e644948d26df77457344c397cc (patch)
tree6b74a1d93a5199a8f98bcffcf5c92a18476b064d /src
parentc4ecb9a53dfe57d7e2f79ada6d0f28839d9fe975 (diff)
downloadteliva-97a0254042e991e644948d26df77457344c397cc.tar.gz
standardize CFLAGS in luasec
What in the world is up with the $MYCFLAGS convention in these Lua
makefiles? I don't know, but I'm going to leave it undisturbed as far as
possible.
Diffstat (limited to 'src')
-rw-r--r--src/luasec/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/luasec/Makefile b/src/luasec/Makefile
index 4b48cb8..d266209 100644
--- a/src/luasec/Makefile
+++ b/src/luasec/Makefile
@@ -14,16 +14,16 @@ WARN=-Wall -pedantic
 BSD_CFLAGS=-O2 -fPIC $(WARN) $(INCDIR) $(DEFS)
 BSD_LDFLAGS=-O -fPIC -shared $(LIBDIR)
 
-LNX_CFLAGS=-O2 $(WARN) $(INCDIR) $(DEFS)
-LNX_LDFLAGS=-O
+linux_CFLAGS=-g -O2 $(WARN) $(INCDIR) $(DEFS)
 
-MAC_ENV=env MACOSX_DEPLOYMENT_TARGET='$(MACVER)'
-MAC_CFLAGS=-O2 -fno-common $(WARN) $(INCDIR) $(DEFS)
-MAC_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR)
+macosx_ENV=env MACOSX_DEPLOYMENT_TARGET='$(MACVER)'
+macosx_CFLAGS=-O2 -fno-common $(WARN) $(INCDIR) $(DEFS)
+macosx_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR)
 
 INSTALL  = install
 CC      ?= gcc
 CCLD      ?= $(MYENV) $(CC)
+CFLAGS = $(linux_CFLAGS)
 CFLAGS  += $(MYCFLAGS)
 LDFLAGS += $(MYLDFLAGS)
 AR= ar rc
@@ -47,7 +47,7 @@ bsd:
 	@$(MAKE) $(CMOD) MYCFLAGS="$(BSD_CFLAGS)" MYLDFLAGS="$(BSD_LDFLAGS)" EXTRA="$(EXTRA)"
 
 macosx:
-	@$(MAKE) $(CMOD) MYCFLAGS="$(MAC_CFLAGS)" MYLDFLAGS="$(MAC_LDFLAGS)" MYENV="$(MAC_ENV)" EXTRA="$(EXTRA)"
+	@$(MAKE) $(CMOD) MYCFLAGS="$(macosx_CFLAGS)" MYLDFLAGS="$(macosx_LDFLAGS)" MYENV="$(macosx_ENV)" EXTRA="$(EXTRA)"
 
 clean:
 	rm -f $(OBJS) $(CMOD)
id=f6f26231a1a2c886f43d9ec965eb7903180067fb'>^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^


cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
61de0a4d ^
cfbb8c84 ^
51a54027 ^

61de0a4d ^


cfbb8c84 ^


61de0a4d ^



cfbb8c84 ^


61de0a4d ^



cfbb8c84 ^


61de0a4d ^


cfbb8c84 ^


61de0a4d ^



cfbb8c84 ^


61de0a4d ^



cfbb8c84 ^


61de0a4d ^



9f186528 ^


61de0a4d ^



9f186528 ^


61de0a4d ^



9f186528 ^


61de0a4d ^


9f186528 ^


61de0a4d ^

9f186528 ^


61de0a4d ^

9f186528 ^


61de0a4d ^

9f186528 ^


61de0a4d ^



9f186528 ^


61de0a4d ^



9f186528 ^


61de0a4d ^

51a54027 ^

cfbb8c84 ^
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155