summaryrefslogtreecommitdiff
blob: 5adcce429f0fb2b7aebcf02d74c5259483b9a0de (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
71
72
73
74
75
--- smp_utils-0.96.orig/Makefile
+++ smp_utils-0.96/Makefile
@@ -39,15 +39,11 @@
 
 INCLUDES = -I include
 
-# may be overridden by 'make -e'
-CFLAGS = -g -O2
-
 MY_CFLAGS = -Wall -W $(EXTRA_FLAGS)
 # MY_CFLAGS = -Wall -W -pedantic -std=c99 $(EXTRA_FLAGS)
 
 CFLAGS_PTHREADS = -D_REENTRANT
 
-LDFLAGS = 
 # LDFLAGS = -v -lm
 
 # $(SDIRS):
@@ -65,8 +61,8 @@
 sub_sgv4:
 	cd sgv4 && $(MAKE)
 
-libsmp.a : sub_mpt sub_sgv4 smp_lib.o smp_interface_sel.o
-	ar r libsmp.a smp_lib.o smp_interface_sel.o mpt/smp_mptctl_io.o  \
+libsmp.a: sub_mpt sub_sgv4 smp_lib.o smp_interface_sel.o
+	$(AR) $(ARFLAGS) libsmp.a smp_lib.o smp_interface_sel.o mpt/smp_mptctl_io.o  \
 	sgv4/smp_sgv4_io.o
 
 depend dep:
@@ -167,15 +163,14 @@
 smp_rep_self_conf_stat: smp_rep_self_conf_stat.o libsmp.a
 	$(LD) -o $@ $(LDFLAGS) $^
 
-install: $(EXECS)
+install:
 	install -d $(INSTDIR)
-	for name in $^; \
+	for name in $(EXECS); \
 	 do install -m 755 $$name $(INSTDIR); \
 	done
 	install -d $(MANDIR)/$(MAN_PREF)
 	for mp in $(MAN_PGS); \
 	 do install -m 644 doc/$$mp $(MANDIR)/$(MAN_PREF); \
-	 gzip -9f $(MANDIR)/$(MAN_PREF)/$$mp; \
 	done
 
 uninstall:
--- smp_utils-0.96.orig/mpt/Makefile
+++ smp_utils-0.96/mpt/Makefile
@@ -18,10 +18,9 @@
 INCLUDES = -I ../include
 
 # CFLAGS = -O2 -Wall -W $(EXTRA_FLAGS)
-CFLAGS = -g -O2 -Wall -W $(EXTRA_FLAGS)
+CFLAGS += -Wall -W $(EXTRA_FLAGS)
 # CFLAGS = -g -O2 -Wall -W -pedantic -std=c99 $(EXTRA_FLAGS)
 
-LDFLAGS = 
 # LDFLAGS = -v -lm
 
 .c.o:
--- smp_utils-0.96.orig/sgv4/Makefile
+++ smp_utils-0.96/sgv4/Makefile
@@ -21,10 +21,9 @@
 # INCLUDES = -I ../include -idirafter ../include/dummy
 
 # CFLAGS =  -O2 -Wall -W $(EXTRA_FLAGS)
-CFLAGS = -g -O2 -Wall -W $(EXTRA_FLAGS)
+CFLAGS += -Wall -W $(EXTRA_FLAGS)
 # CFLAGS = -O2 -Wall -W -pedantic -std=c99 $(EXTRA_FLAGS)
 
-LDFLAGS = 
 # LDFLAGS = -v -lm
 
 .c.o: