blob: 76ff4f517da7ad3fa5a211fbbda3e75c2471600e (
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
|
Fold sed that injects LDFLAGS. Inject CFLAGS too.
Remove hardcoded CFLAGS. Remove strip that previously was sidestepped
by setting STRIP=true in ebuild
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -2,7 +2,6 @@
AR?= ar
CC?= cc
-CFLAGS+=-g -Wall -Wpedantic -Wextra -Wno-unused-parameter -Werror
INSTALL?=install
LORDER?=lorder
TSORT?=tsort
--- a/symon/Makefile
+++ b/symon/Makefile
@@ -21,9 +21,8 @@
${OBJS}: conf.h
symon: ${OBJS}
- ${CC} -o $@ ${OBJS} ${LIBS}
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ ${OBJS} ${LIBS}
.ifndef DEBUG
- ${STRIP} $@
.endif
clean:
--- a/symux/Makefile
+++ b/symux/Makefile
@@ -10,9 +10,8 @@
all: symux symux.cat8
symux: ${OBJS}
- ${CC} -o $@ ${OBJS} ${LIBS}
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ ${OBJS} ${LIBS}
.ifndef DEBUG
- ${STRIP} $@
.endif
clean:
|