2002-01-30 13:46:03 +01:00
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
LIBNAME = libinput.a
|
|
|
|
|
2002-01-31 10:39:11 +01:00
|
|
|
SRCS=input.c joystick.c lirc.c
|
2002-01-30 13:46:03 +01:00
|
|
|
OBJS=$(SRCS:.c=.o)
|
|
|
|
|
2002-08-23 01:29:46 +02:00
|
|
|
CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC)
|
2002-01-30 13:46:03 +01:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
2004-06-24 14:52:17 +02:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2002-01-30 13:46:03 +01:00
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
rm -f Makefile.bak *.o *.a *~ .depend
|
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|