annotate input/Makefile @ 19292:20938447bb55

'make clean' now recurses through subdirectories as expected, 'make dirclean' can be used to clean just the toplevel directory.
author diego
date Thu, 03 Aug 2006 17:31:30 +0000
parents 7a9a9748e045
children 4f71ed7cb512
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
4432
5105f5da01d6 Added lirc support in input
albeu
parents: 4418
diff changeset
6 SRCS=input.c joystick.c lirc.c
4418
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
7 OBJS=$(SRCS:.c=.o)
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
8
19037
7a9a9748e045 OPTFLAGS already includes EXTRA_INC.
diego
parents: 17488
diff changeset
9 CFLAGS = $(OPTFLAGS) -I. -I..
4418
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
10
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
11 .SUFFIXES: .c .o
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
12
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
13
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
14 .c.o:
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
15 $(CC) -c $(CFLAGS) -o $@ $<
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
16
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
17 $(LIBNAME): $(OBJS)
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
18 $(AR) r $(LIBNAME) $(OBJS)
12632
80973aa180a5 ranlib cleanup by Dan Christiansen
alex
parents: 7073
diff changeset
19 $(RANLIB) $(LIBNAME)
4418
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 all: $(LIBNAME)
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
22
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
23 clean:
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
24 rm -f *.o *.a *~
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
25
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 12632
diff changeset
26 distclean: clean
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 12632
diff changeset
27 rm -f .depend
4418
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
28
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
29 dep: depend
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
30
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
31 depend:
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
32 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
33
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
34 #
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
35 # include dependency files if they exist
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
36 #
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
37 ifneq ($(wildcard .depend),)
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
38 include .depend
8141d2c399e4 A new configurable input system and joystick support for this system
albeu
parents:
diff changeset
39 endif