2002-01-30 12:46:03 +00:00
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
LIBNAME = libinput.a
|
|
|
|
|
2006-09-12 08:42:01 +00:00
|
|
|
SRCS=input.c
|
|
|
|
ifeq ($(JOYSTICK),yes)
|
|
|
|
SRCS += joystick.c
|
|
|
|
endif
|
|
|
|
ifeq ($(LIRC),yes)
|
|
|
|
SRCS += lirc.c
|
|
|
|
endif
|
|
|
|
|
2002-01-30 12:46:03 +00:00
|
|
|
OBJS=$(SRCS:.c=.o)
|
|
|
|
|
2006-08-17 17:19:56 +00:00
|
|
|
CFLAGS = -I. -I.. $(OPTFLAGS)
|
2002-01-30 12:46:03 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
2004-06-24 12:52:17 +00:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2002-01-30 12:46:03 +00:00
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
2006-01-27 00:06:42 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f .depend
|
2002-01-30 12:46:03 +00:00
|
|
|
|
2006-11-20 11:18:01 +00:00
|
|
|
dep depend:
|
2002-01-30 12:46:03 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|