aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/Makefile
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2013-07-24 14:26:31 +0530
committerNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2013-07-24 14:46:22 +0530
commitc4ddc59f676ee4fbdb03d3905904c48b150abf85 (patch)
treeb2d60e398b47a10ebd953c5fbac4739f27c237ea /lib/libusb/Makefile
parent3c7febb48f971621ac368807d6e2a2a60ab06ce4 (diff)
downloadSLOF-c4ddc59f676ee4fbdb03d3905904c48b150abf85.zip
SLOF-c4ddc59f676ee4fbdb03d3905904c48b150abf85.tar.gz
SLOF-c4ddc59f676ee4fbdb03d3905904c48b150abf85.tar.bz2
usb-core: registration and makefiles
* Introduce libusb * USB core register routine and required forth changes * USB OHCI skeleton file Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Acked-by: Thomas Huth <thuth@de.ibm.com>
Diffstat (limited to 'lib/libusb/Makefile')
-rw-r--r--lib/libusb/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/lib/libusb/Makefile b/lib/libusb/Makefile
index e69de29..25c8002 100644
--- a/lib/libusb/Makefile
+++ b/lib/libusb/Makefile
@@ -0,0 +1,49 @@
+# *****************************************************************************
+# * Copyright (c) 2004, 2008 IBM Corporation
+# * All rights reserved.
+# * This program and the accompanying materials
+# * are made available under the terms of the BSD License
+# * which accompanies this distribution, and is available at
+# * http://www.opensource.org/licenses/bsd-license.php
+# *
+# * Contributors:
+# * IBM Corporation - initial implementation
+# ****************************************************************************/
+
+TOPCMNDIR ?= ../..
+
+ASFLAGS = $(FLAG) $(RELEASE) $(CPUARCHDEF) -Wa,-mregnames
+CPPFLAGS = -I../libc/include $(CPUARCHDEF) -I$(INCLBRDDIR) \
+ -I$(INCLCMNDIR) -I$(INCLCMNDIR)/$(CPUARCH)
+LDFLAGS = -nostdlib
+
+TARGET = ../libusb.a
+
+
+all: $(TARGET)
+
+SRCS = usb-core.c usb-ohci.c
+
+OBJS = $(SRCS:%.c=%.o)
+
+$(TARGET): $(OBJS)
+ $(AR) -rc $@ $(OBJS)
+ $(RANLIB) $@
+
+clean:
+ $(RM) $(TARGET) $(OBJS)
+
+distclean: clean
+ $(RM) Makefile.dep
+
+
+# Rules for creating the dependency file:
+depend:
+ $(RM) Makefile.dep
+ $(MAKE) Makefile.dep
+
+Makefile.dep: Makefile
+ $(CC) -M $(CPPFLAGS) $(CFLAGS) $(SRCS) $(SRCSS) > Makefile.dep
+
+# Include dependency file if available:
+-include Makefile.dep