UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / src / drivers / Makefile
blob0876301efc5836ab487f5bdf8ae4eab8ad701287
1 topdir:=../..
3 SUBDIRS = $(SMARTDRV) $(DUMBDRV) $(NETDRV) $(PCNETDRV) $(USBDRV) \
4 $(SNMPDRV) $(SNMPLTDRV) $(TESTDRV)
6 include $(topdir)/autoconf/targets.mak
8 # Append to OBJS the path to each driver object
9 OBJS += $(foreach subdir,$(SUBDIRS),$(call SRC2OBJ,$(wildcard $(subdir)/*.c)))
10 OBJS += $(foreach subdir,$(SUBDIRS),$(call SRC2OBJ,$(wildcard $(subdir)/*.cpp)))
11 ifneq ($(strip $(USBDRV)),)
12 OBJS += $(call SRC2OBJ,$(wildcard $(USBDRV)/$(USBTYPE)/*.c))
13 endif
15 SRCS = drivers.c
17 all-targets: libdrivers.a
19 libdrivers.a: $(OBJS)
20 $(MAKELIB)
22 # Include dependencies
23 -include $(DEPS)