~ubuntu-branches/ubuntu/saucy/joystick/saucy

« back to all changes in this revision

Viewing changes to utils/Makefile

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-06-08 07:27:30 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: package-import@ubuntu.com-20120608072730-ucf7rtrc34u4pspi
* New upstream release.
* Enable hardened build using debhelper 9.
* Standards-Version 3.9.3, no further change required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
# $Id: Makefile 2421 2011-04-05 07:24:27Z skitt $
 
2
# $Id$
3
3
#
4
4
# Makefile for Linux input utilities
5
5
#
26
26
#
27
27
 
28
28
CC              = gcc
29
 
CFLAGS          = -g -O2 -Wall -I../linux/include
 
29
CPPFLAGS        += -I../linux/include
30
30
 
31
31
PROGRAMS        = inputattach jstest jscal fftest ffmvforce ffset \
32
32
                  ffcfstress jscal-restore jscal-store
40
40
        $(RM) *.o *.swp $(PROGRAMS) *.orig *.rej map *~
41
41
 
42
42
ffcfstress: ffcfstress.c
43
 
        $(CC) -O2 -funsigned-char ffcfstress.c -lm -o ffcfstress
 
43
        $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -funsigned-char ffcfstress.c -lm -o ffcfstress
44
44
 
45
45
ffmvforce.o: ffmvforce.c
46
46
        $(CC) -c $(CFLAGS) $(CPPFLAGS) $^ -o $@ `sdl-config --cflags`
53
53
jscal.o: jscal.c axbtnmap.h
54
54
 
55
55
jscal: jscal.o axbtnmap.o
56
 
        $(CC) $(CFLAGS) $(CPPFLAGS) $^ -lm -o $@
 
56
        $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ -lm -o $@
57
57
 
58
58
jstest.o: jstest.c axbtnmap.h
59
59
 
60
60
jstest: jstest.o axbtnmap.o
61
61
 
62
62
gencodes: gencodes.c scancodes.h
63
 
        $(CC) $(CFLAGS) $(CPPFLAGS) gencodes.c -o gencodes
 
63
        $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) gencodes.c -o gencodes
64
64
 
65
65
jscal-restore: jscal-restore.in
66
66
        sed "s^@@PREFIX@@^$(PREFIX)^g" < $^ > $@