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
))
17 all-targets
: libdrivers.a
22 # Include dependencies