Jana Rapava | a523595 | 2011-12-05 11:07:00 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011 Jana Rapava <fermata7@gmail.com> |
Jana Rapava | a523595 | 2011-12-05 11:07:00 +0200 | [diff] [blame] | 3 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Jana Rapava | a523595 | 2011-12-05 11:07:00 +0200 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
| 9 | LIB := $(obj)libusb_ulpi.o |
| 10 | |
| 11 | COBJS-$(CONFIG_USB_ULPI) += ulpi.o |
| 12 | COBJS-$(CONFIG_USB_ULPI_VIEWPORT) += ulpi-viewport.o |
Govindraj.R | c5e5707 | 2012-02-06 03:55:32 +0000 | [diff] [blame] | 13 | COBJS-$(CONFIG_USB_ULPI_VIEWPORT_OMAP) += omap-ulpi-viewport.o |
Jana Rapava | a523595 | 2011-12-05 11:07:00 +0200 | [diff] [blame] | 14 | |
| 15 | COBJS := $(COBJS-y) |
| 16 | SRCS := $(COBJS:.o=.c) |
| 17 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 18 | |
| 19 | all: $(LIB) |
| 20 | |
| 21 | $(LIB): $(obj).depend $(OBJS) |
| 22 | $(call cmd_link_o_target, $(OBJS)) |
| 23 | |
| 24 | ######################################################################### |
| 25 | |
| 26 | # defines $(obj).depend target |
| 27 | include $(SRCTREE)/rules.mk |
| 28 | |
| 29 | sinclude $(obj).depend |
| 30 | |
| 31 | ######################################################################### |