annotate input/Makefile @ 20911:5ab1e8c8f749

bump date of NUT spec for previous commit
author ods15
date Tue, 14 Nov 2006 17:05:20 +0000
parents 133f4d2f84c5
children 618d1857f4c4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4418
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
1
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
2 include ../config.mak
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
3
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
4 LIBNAME = libinput.a
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
5
19801
133f4d2f84c5 Move conditional compilation to the build system.
diego
parents: 19420
diff changeset
6 SRCS=input.c
133f4d2f84c5 Move conditional compilation to the build system.
diego
parents: 19420
diff changeset
7 ifeq ($(JOYSTICK),yes)
133f4d2f84c5 Move conditional compilation to the build system.
diego
parents: 19420
diff changeset
8 SRCS += joystick.c
133f4d2f84c5 Move conditional compilation to the build system.
diego
parents: 19420
diff changeset
9 endif
133f4d2f84c5 Move conditional compilation to the build system.
diego
parents: 19420
diff changeset
10 ifeq ($(LIRC),yes)
133f4d2f84c5 Move conditional compilation to the build system.
diego
parents: 19420
diff changeset
11 SRCS += lirc.c
133f4d2f84c5 Move conditional compilation to the build system.
diego
parents: 19420
diff changeset
12 endif
133f4d2f84c5 Move conditional compilation to the build system.
diego
parents: 19420
diff changeset
13
4418
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
14 OBJS=$(SRCS:.c=.o)
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
15
19420
4f71ed7cb512 Move all internal -I parameters to the front of CFLAGS to avoid using external
diego
parents: 19037
diff changeset
16 CFLAGS = -I. -I.. $(OPTFLAGS)
4418
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
17
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
18 .SUFFIXES: .c .o
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
19
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
20
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
21 .c.o:
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
22 $(CC) -c $(CFLAGS) -o $@ $<
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
23
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
24 $(LIBNAME): $(OBJS)
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
25 $(AR) r $(LIBNAME) $(OBJS)
12632
80973aa180a5 ranlib cleanup by Dan Christiansen
alex
parents: 7073
diff changeset
26 $(RANLIB) $(LIBNAME)
4418
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
27
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
28 all: $(LIBNAME)
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
29
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
30 clean:
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
31 rm -f *.o *.a *~
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
32
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 12632
diff changeset
33 distclean: clean
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 12632
diff changeset
34 rm -f .depend
4418
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
35
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
36 dep: depend
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
37
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
38 depend:
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
39 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
40
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
41 #
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
42 # include dependency files if they exist
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
43 #
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
44 ifneq ($(wildcard .depend),)
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
45 include .depend
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
46 endif