1# Include configuration rules 2VPATH = $(SRC) 3include $(MAKEDIR)/com32.mk 4 5REQFLAGS += -I$(SRC) 6 7LIBOBJS := $(notdir $(patsubst %.c,%.o,$(wildcard $(SRC)/*.c))) 8 9BINDIR = /usr/bin 10LIBDIR = /usr/lib 11DATADIR = /usr/share 12AUXDIR = $(DATADIR)/syslinux 13INCDIR = /usr/include 14COM32DIR = $(AUXDIR)/com32 15 16all: libcom32upload.a 17 18libcom32upload.a : $(LIBOBJS) 19 rm -f $@ 20 $(AR) cq $@ $^ 21 $(RANLIB) $@ 22 23tidy dist clean: 24 find . \( -name \*.o -o -name \*.a -o -name .\*.d -o -name \*.tmp \) -print0 | \ 25 xargs -0r rm -f 26 27spotless: clean 28 rm -f *.a 29 rm -f *~ \#* */*~ */\#* 30 31install: all 32 mkdir -m 755 -p $(INSTALLROOT)$(COM32DIR) 33 install -m 644 libcom32upload.a $(INSTALLROOT)$(COM32DIR) 34 mkdir -p $(INSTALLROOT)$(COM32DIR)/include/ 35 cp -r $(SRC)/*.h $(INSTALLROOT)$(COM32DIR)/include/ 36 37-include .*.d */.*.d */*/.*.d 38