~ubuntu-branches/ubuntu/breezy/joystick/breezy

1 by Edward Betts
Import upstream version 20010903
1
#
2
# $Id: Makefile,v 1.6 2001/07/21 15:43:01 jdeneux Exp $
3
#
4
# Makefile for Linux input utilities
5
#
6
# (c) 1998-2000 Vojtech Pavlik
7
#
8
# Sponsored by SuSE
9
#
10
# This program is free software; you can redistribute it and/or modify
11
# it under the terms of the GNU General Public License as published by
12
# the Free Software Foundation; either version 2 of the License, or
13
# (at your option) any later version.
14
#
15
# This program is distributed in the hope that it will be useful,
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
# GNU General Public License for more details.
19
#
20
# You should have received a copy of the GNU General Public License
21
# along with this program; if not, write to the Free Software
22
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#
24
# Should you need to contact me, the author, you can do so either by
25
# e-mail - mail your message to <vojtech@suse.cz>, or by paper mail:
26
# Vojtech Pavlik, Ucitelska 1576, Prague 8, 182 00 Czech Republic
27
#
28
#
29
# Edit the options below to suit your needs
30
#
31
32
CC		= gcc
33
CFLAGS		= -g -O2 -Wall -I../linux/include
34
35
PROGRAMS	= evtest inputattach jstest jscal fftest ffmvforce ffset
36
37
compile: $(PROGRAMS)
38
39
clean:
40
	$(RM) *.o *.swp $(PROGRAMS) *.orig *.rej map *~
41
42
ffmvforce.o: ffmvforce.c
43
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $^ -o $@ `sdl-config --cflags`
44
45
ffmvforce: ffmvforce.o
46
	$(CC) $^ -o $@ $(LDFLAGS) -g -lm `sdl-config --libs`
47
48
jscal: jscal.o
49
	$(CC) $(CFLAGS) $(CPPFLAGS) -lm $^ -o $@
50
51
gencodes: gencodes.c scancodes.h
52
	$(CC) $(CFLAGS) $(CPPFLAGS) gencodes.c -o gencodes