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

1 by Edward Betts
Import upstream version 20010903
1
#
1.1.6 by Stephen Kitt
Import upstream version 1.4.3
2
# $Id$
1 by Edward Betts
Import upstream version 20010903
3
#
4
# Makefile for Linux input utilities
5
#
1.1.2 by Stephen Kitt
Import upstream version 1.4~rc1
6
# © 1998-2000 Vojtech Pavlik (sponsored by SuSE)
1.1.7 by Stephen Kitt
Import upstream version 1.4.6
7
# © 2008-2012 Stephen Kitt <steve@sk2.org>
1 by Edward Betts
Import upstream version 20010903
8
#
9
# This program is free software; you can redistribute it and/or modify
10
# it under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 2 of the License, or
12
# (at your option) any later version.
13
#
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
# GNU General Public License for more details.
18
#
19
# You should have received a copy of the GNU General Public License
20
# along with this program; if not, write to the Free Software
1.1.2 by Stephen Kitt
Import upstream version 1.4~rc1
21
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
# 02110-1301 USA.
1 by Edward Betts
Import upstream version 20010903
23
#
24
#
25
# Edit the options below to suit your needs
26
#
27
1.1.7 by Stephen Kitt
Import upstream version 1.4.6
28
CFLAGS		?= -g -O2 -Wall
1 by Edward Betts
Import upstream version 20010903
29
1.1.3 by Stephen Kitt
Import upstream version 1.4
30
PROGRAMS	= inputattach jstest jscal fftest ffmvforce ffset \
1.1.2 by Stephen Kitt
Import upstream version 1.4~rc1
31
		  ffcfstress jscal-restore jscal-store
32
33
PREFIX          ?= /usr/local
1 by Edward Betts
Import upstream version 20010903
34
35
compile: $(PROGRAMS)
36
1.1.2 by Stephen Kitt
Import upstream version 1.4~rc1
37
distclean: clean
1 by Edward Betts
Import upstream version 20010903
38
clean:
39
	$(RM) *.o *.swp $(PROGRAMS) *.orig *.rej map *~
40
1.1.1 by Edward Betts
Import upstream version 20051019
41
ffcfstress: ffcfstress.c
1.1.7 by Stephen Kitt
Import upstream version 1.4.6
42
	$(CC) $(CFLAGS) $(CPPFLAGS) -funsigned-char $^ $(LDFLAGS) -lm -o $@
1.1.1 by Edward Betts
Import upstream version 20051019
43
1 by Edward Betts
Import upstream version 20010903
44
ffmvforce.o: ffmvforce.c
1.1.7 by Stephen Kitt
Import upstream version 1.4.6
45
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $^ -o $@ `sdl-config --cflags`
1 by Edward Betts
Import upstream version 20010903
46
47
ffmvforce: ffmvforce.o
48
	$(CC) $^ -o $@ $(LDFLAGS) -g -lm `sdl-config --libs`
49
3.1.5 by Stephen Kitt
evtest: flush standard output, thanks Florian Fainelli! Closes:
50
axbtnmap.o: axbtnmap.c axbtnmap.h
51
52
jscal.o: jscal.c axbtnmap.h
53
54
jscal: jscal.o axbtnmap.o
3.1.11 by Stephen Kitt
* New upstream release.
55
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ -lm -o $@
1.1.2 by Stephen Kitt
Import upstream version 1.4~rc1
56
3.1.5 by Stephen Kitt
evtest: flush standard output, thanks Florian Fainelli! Closes:
57
jstest.o: jstest.c axbtnmap.h
58
59
jstest: jstest.o axbtnmap.o
60
1 by Edward Betts
Import upstream version 20010903
61
gencodes: gencodes.c scancodes.h
1.1.7 by Stephen Kitt
Import upstream version 1.4.6
62
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) gencodes.c -o $@
1.1.1 by Edward Betts
Import upstream version 20051019
63
1.1.2 by Stephen Kitt
Import upstream version 1.4~rc1
64
jscal-restore: jscal-restore.in
65
	sed "s^@@PREFIX@@^$(PREFIX)^g" < $^ > $@
66
67
jscal-store: jscal-store.in
68
	sed "s^@@PREFIX@@^$(PREFIX)^g" < $^ > $@
69
70
install: compile
71
	install -d $(DESTDIR)$(PREFIX)/bin
72
	install $(PROGRAMS) $(DESTDIR)$(PREFIX)/bin
73
	install -d $(DESTDIR)$(PREFIX)/share/joystick
74
	install extract filter ident $(DESTDIR)$(PREFIX)/share/joystick
75
76
.PHONY: compile clean distclean install