Jana Rapava | f93022c | 2011-12-05 11:07:00 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011 Jana Rapava <fermata7@gmail.com> |
Jana Rapava | f93022c | 2011-12-05 11:07:00 +0200 | [diff] [blame] | 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Jana Rapava | f93022c | 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 | 928c4bd | 2012-02-06 03:55:32 +0000 | [diff] [blame] | 13 | COBJS-$(CONFIG_USB_ULPI_VIEWPORT_OMAP) += omap-ulpi-viewport.o |
Jana Rapava | f93022c | 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 | ######################################################################### |