summaryrefslogtreecommitdiff
blob: eecb12cad5b4c7e6df53b62958f454268fbea1f8 (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
76
77
78
79
80
81
--- a/Makefile	2018-04-27 17:02:16.000000000 +0200
+++ b/Makefile	2018-05-13 20:54:08.741008488 +0200
@@ -21,7 +21,7 @@
 # Codename "portable pressure producer"
 #
 
-CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 -std=gnu99
+CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 
 #
 # Pedantic flags
@@ -314,12 +314,9 @@
 .o: stress-ng.h Makefile
 
 .c.o: stress-ng.h Makefile $(SRC)
-	@echo "CC $<"
-	@$(CC) $(CFLAGS) -c -o $@ $<
 
 stress-ng: info $(OBJS)
-	@echo "LD $@"
-	@$(CC) $(CPPFLAGS) $(CFLAGS) $(OBJS) -lm $(LDFLAGS) -lc -o $@
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(OBJS) -lm $(LDFLAGS) -lc -o $@
 	@sync
 
 .PHONY: info
@@ -339,8 +336,7 @@
 		sed '$$ s/.$$//' >> apparmor-data.c
 	@echo "};" >> apparmor-data.c
 	@echo "const size_t g_apparmor_data_len = sizeof(g_apparmor_data);" >> apparmor-data.c
-	@echo "CC $<"
-	@$(CC) -c apparmor-data.c -o apparmor-data.o
+	$(CC) $(CFLAGS) $(CPPFLAGS) -c apparmor-data.c -o apparmor-data.o
 	@rm -rf apparmor-data.c
 
 #
@@ -353,20 +349,15 @@
 stress-personality.c: personality.h
 
 perf.o: perf.c perf-event.c
-	@$(CC) -E perf-event.c | grep "PERF_COUNT" | sed 's/,/ /' | awk {'print "#define _SNG_" $$1 " (1)"'} > perf-event.h
-	@echo CC $<
-	@$(CC) $(CFLAGS) -c -o $@ $<
+	$(CC) $(CFLAGS) $(CPPFLAGS) -E perf-event.c | grep "PERF_COUNT" | sed 's/,/ /' | awk {'print "#define _SNG_" $$1 " (1)"'} > perf-event.h
+	$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
 
 stress-vecmath.o: stress-vecmath.c
-	@echo CC $<
-	@$(CC) $(CFLAGS) -fno-builtin -c -o $@ $<
+	$(CC) $(CFLAGS) $(CPPFLAGS) -fno-builtin -c -o $@ $<
 	@touch stress-ng.c
 
 $(OBJS): stress-ng.h Makefile
 
-stress-ng.1.gz: stress-ng.1
-	gzip -c $< > $@
-
 .PHONY: dist
 dist:
 	rm -rf stress-ng-$(VERSION)
@@ -386,7 +377,7 @@
 
 .PHONY: clean
 clean:
-	@rm -f stress-ng $(OBJS) stress-ng.1.gz stress-ng.pdf
+	@rm -f stress-ng $(OBJS) stress-ng.pdf
 	@rm -f stress-ng-$(VERSION).tar.xz
 	@rm -f personality.h
 	@rm -f perf-event.h
@@ -398,10 +389,10 @@
 	STRESS_NG=./stress-ng debian/tests/fast-test-all
 
 .PHONY: install
-install: stress-ng stress-ng.1.gz
+install: stress-ng
 	mkdir -p ${DESTDIR}${BINDIR}
 	cp stress-ng ${DESTDIR}${BINDIR}
 	mkdir -p ${DESTDIR}${MANDIR}
-	cp stress-ng.1.gz ${DESTDIR}${MANDIR}
+	cp stress-ng.1 ${DESTDIR}${MANDIR}
 	mkdir -p ${DESTDIR}${JOBDIR}
 	cp -rp example-jobs/*.job ${DESTDIR}${JOBDIR}