File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / pciutils / lib / Makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Fri Feb 17 15:18:43 2012 UTC (13 years, 1 month ago) by misho
Branches: pciutils, MAIN
CVS tags: v3_1_9, HEAD
pciutils

    1: # Makefile for The PCI Library
    2: # (c) 1999--2008 Martin Mares <mj@ucw.cz>
    3: 
    4: # Expects to be invoked from the top-level Makefile and uses lots of its variables.
    5: 
    6: OBJS=init access generic dump names filter names-hash names-parse names-net names-cache params caps
    7: INCL=internal.h pci.h config.h header.h sysdep.h types.h
    8: 
    9: ifdef PCI_HAVE_PM_LINUX_SYSFS
   10: OBJS += sysfs
   11: endif
   12: 
   13: ifdef PCI_HAVE_PM_LINUX_PROC
   14: OBJS += proc
   15: endif
   16: 
   17: ifdef PCI_HAVE_PM_INTEL_CONF
   18: OBJS += i386-ports
   19: endif
   20: 
   21: ifdef PCI_HAVE_PM_DUMP
   22: OBJS += dump
   23: endif
   24: 
   25: ifdef PCI_HAVE_PM_FBSD_DEVICE
   26: OBJS += fbsd-device
   27: CFLAGS += -I/usr/src/sys
   28: ifdef FREEBSD_SYS
   29: CFLAGS += -I${FREEBSD_SYS}
   30: endif
   31: endif
   32: 
   33: ifdef PCI_HAVE_PM_OBSD_DEVICE
   34: OBJS += obsd-device
   35: endif
   36: 
   37: ifdef PCI_HAVE_PM_AIX_DEVICE
   38: OBJS += aix-device
   39: endif
   40: 
   41: ifdef PCI_HAVE_PM_NBSD_LIBPCI
   42: OBJS += nbsd-libpci
   43: endif
   44: 
   45: all: $(PCILIB) $(PCILIBPC)
   46: 
   47: ifeq ($(SHARED),no)
   48: $(PCILIB): $(addsuffix .o,$(OBJS))
   49: 	rm -f $@
   50: 	$(AR) rcs $@ $^
   51: 	$(RANLIB) $@
   52: else
   53: CFLAGS += -fPIC -fvisibility=hidden
   54: $(PCILIB): $(addsuffix .o,$(OBJS))
   55: 	$(CC) -shared $(LDFLAGS) $(SONAME) -Wl,--version-script=libpci.ver -o $@ $^ $(LIB_LDLIBS)
   56: endif
   57: 
   58: $(PCILIBPC): libpci.pc.in
   59: 	sed <$< >$@ -e 's,@PREFIX@,$(PREFIX),' \
   60: 		-e 's,@INCDIR@,$(INCDIR),' \
   61: 		-e 's,@LIBDIR@,$(LIBDIR),' \
   62: 		-e 's,@IDSDIR@,$(IDSDIR),' \
   63: 		-e 's,@VERSION@,$(VERSION),' \
   64: 		-e 's,@LDLIBS@,$(LDLIBS),'
   65: 
   66: init.o: init.c $(INCL)
   67: access.o: access.c $(INCL)
   68: params.o: params.c $(INCL)
   69: i386-ports.o: i386-ports.c $(INCL) i386-io-hurd.h i386-io-linux.h i386-io-sunos.h i386-io-windows.h i386-io-cygwin.h
   70: proc.o: proc.c $(INCL) pread.h
   71: sysfs.o: sysfs.c $(INCL) pread.h
   72: generic.o: generic.c $(INCL)
   73: syscalls.o: syscalls.c $(INCL)
   74: obsd-device.o: obsd-device.c $(INCL)
   75: fbsd-device.o: fbsd-device.c $(INCL)
   76: aix-device.o: aix-device.c $(INCL)
   77: dump.o: dump.c $(INCL)
   78: names.o: names.c $(INCL) names.h
   79: names-cache.o: names-cache.c $(INCL) names.h
   80: names-hash.o: names-hash.c $(INCL) names.h
   81: names-net.o: names-net.c $(INCL) names.h
   82: names-parse.o: names-parse.c $(INCL) names.h
   83: filter.o: filter.c $(INCL)
   84: nbsd-libpci.o: nbsd-libpci.c $(INCL)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>