1
Description: Pass flags required to enable hardened builds
2
Author: Stephen Kitt <steve@sk2.org>
5
--- joystick.orig/utils/Makefile
6
+++ joystick/utils/Makefile
11
-CFLAGS = -g -O2 -Wall -I../linux/include
12
+CPPFLAGS += -I../linux/include
14
PROGRAMS = inputattach jstest jscal fftest ffmvforce ffset \
15
ffcfstress jscal-restore jscal-store
17
$(RM) *.o *.swp $(PROGRAMS) *.orig *.rej map *~
19
ffcfstress: ffcfstress.c
20
- $(CC) -O2 -funsigned-char ffcfstress.c -lm -o ffcfstress
21
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -funsigned-char ffcfstress.c -lm -o ffcfstress
23
ffmvforce.o: ffmvforce.c
24
$(CC) -c $(CFLAGS) $(CPPFLAGS) $^ -o $@ `sdl-config --cflags`
26
jscal.o: jscal.c axbtnmap.h
28
jscal: jscal.o axbtnmap.o
29
- $(CC) $(CFLAGS) $(CPPFLAGS) $^ -lm -o $@
30
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ -lm -o $@
32
jstest.o: jstest.c axbtnmap.h
34
jstest: jstest.o axbtnmap.o
36
gencodes: gencodes.c scancodes.h
37
- $(CC) $(CFLAGS) $(CPPFLAGS) gencodes.c -o gencodes
38
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) gencodes.c -o gencodes
40
jscal-restore: jscal-restore.in
41
sed "s^@@PREFIX@@^$(PREFIX)^g" < $^ > $@