Makefile (45e565337a90bbca0c1bb712b5e008b7c0b18bd5) | Makefile (23cd138503f90ff6af109c0096727ba641942614) |
---|---|
1# 2# (C) Copyright 2000-2007 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# See file CREDITS for list of people who contributed to this 6# project. 7# 8# This program is free software; you can redistribute it and/or --- 11 unchanged lines hidden (view full) --- 20# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21# MA 02111-1307 USA 22# 23 24include $(TOPDIR)/config.mk 25 26LIB := $(obj)libusb_gadget.a 27 | 1# 2# (C) Copyright 2000-2007 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# See file CREDITS for list of people who contributed to this 6# project. 7# 8# This program is free software; you can redistribute it and/or --- 11 unchanged lines hidden (view full) --- 20# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21# MA 02111-1307 USA 22# 23 24include $(TOPDIR)/config.mk 25 26LIB := $(obj)libusb_gadget.a 27 |
28# Devices not related to the new gadget layer depend on CONFIG_USB_DEVICE |
|
28ifdef CONFIG_USB_DEVICE 29COBJS-y += core.o 30COBJS-y += ep0.o 31COBJS-$(CONFIG_OMAP1510) += omap1510_udc.o 32COBJS-$(CONFIG_OMAP1610) += omap1510_udc.o 33COBJS-$(CONFIG_MPC885_FAMILY) += mpc8xx_udc.o 34COBJS-$(CONFIG_PXA27X) += pxa27x_udc.o 35COBJS-$(CONFIG_SPEARUDC) += spr_udc.o 36endif | 29ifdef CONFIG_USB_DEVICE 30COBJS-y += core.o 31COBJS-y += ep0.o 32COBJS-$(CONFIG_OMAP1510) += omap1510_udc.o 33COBJS-$(CONFIG_OMAP1610) += omap1510_udc.o 34COBJS-$(CONFIG_MPC885_FAMILY) += mpc8xx_udc.o 35COBJS-$(CONFIG_PXA27X) += pxa27x_udc.o 36COBJS-$(CONFIG_SPEARUDC) += spr_udc.o 37endif |
38# new USB gadget layer dependencies 39COBJS-$(CONFIG_USB_ETHER) += ether.o epautoconf.o config.o usbstring.o |
|
37 38COBJS := $(COBJS-y) 39SRCS := $(COBJS:.o=.c) 40OBJS := $(addprefix $(obj),$(COBJS)) 41 42all: $(LIB) 43 44$(LIB): $(obj).depend $(OBJS) 45 $(AR) $(ARFLAGS) $@ $(OBJS) 46 47######################################################################### 48 49# defines $(obj).depend target 50include $(SRCTREE)/rules.mk 51 52sinclude $(obj).depend 53 54######################################################################### | 40 41COBJS := $(COBJS-y) 42SRCS := $(COBJS:.o=.c) 43OBJS := $(addprefix $(obj),$(COBJS)) 44 45all: $(LIB) 46 47$(LIB): $(obj).depend $(OBJS) 48 $(AR) $(ARFLAGS) $@ $(OBJS) 49 50######################################################################### 51 52# defines $(obj).depend target 53include $(SRCTREE)/rules.mk 54 55sinclude $(obj).depend 56 57######################################################################### |