comparison input/Makefile @ 4418:8141d2c399e4

A new configurable input system and joystick support for this system
author albeu
date Wed, 30 Jan 2002 12:46:03 +0000
parents
children 5105f5da01d6
comparison
equal deleted inserted replaced
4417:4f507d28716d 4418:8141d2c399e4
1
2 include ../config.mak
3
4 LIBNAME = libinput.a
5
6 SRCS=input.c joystick.c
7 OBJS=$(SRCS:.c=.o)
8
9 CFLAGS = $(OPTFLAGS) -I. -I.. -Wall
10
11 .SUFFIXES: .c .o
12
13
14 .c.o:
15 $(CC) -c $(CFLAGS) -o $@ $<
16
17 $(LIBNAME): $(OBJS)
18 $(AR) r $(LIBNAME) $(OBJS)
19
20 all: $(LIBNAME)
21
22 clean:
23 rm -f *.o *.a *~
24
25 distclean:
26 rm -f Makefile.bak *.o *.a *~ .depend
27
28 dep: depend
29
30 depend:
31 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
32
33 #
34 # include dependency files if they exist
35 #
36 ifneq ($(wildcard .depend),)
37 include .depend
38 endif