~ubuntu-branches/ubuntu/precise/pciutils/precise

« back to all changes in this revision

Viewing changes to lib/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2010-06-26 14:17:57 UTC
  • mfrom: (2.1.18 sid)
  • Revision ID: james.westby@ubuntu.com-20100626141757-xsp7xqv15qotwels
Tags: 1:3.1.7-4
Update pci.ids with snapshot dated 2010-06-12

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
# Expects to be invoked from the top-level Makefile and uses lots of its variables.
5
5
 
6
 
OBJS=init access generic dump names filter names-hash names-parse names-net names-cache params
 
6
OBJS=init access generic dump names filter names-hash names-parse names-net names-cache params caps
7
7
INCL=internal.h pci.h config.h header.h sysdep.h types.h
8
8
 
9
9
ifdef PCI_HAVE_PM_LINUX_SYSFS
46
46
 
47
47
all: $(PCILIB) $(PCILIBA) $(PCILIBPC)
48
48
 
49
 
# ifeq ($(SHARED),no)
 
49
#ifeq ($(SHARED),no)
50
50
$(PCILIBA): $(addsuffix .o,$(OBJS))
51
51
        rm -f $@
52
52
        $(AR) rcs $@ $^
53
53
        $(RANLIB) $@
54
 
# else
 
54
#else
55
55
CFLAGS += -fPIC -fvisibility=hidden
56
56
$(PCILIB): $(addsuffix .o,$(OBJS))
57
 
        $(CC) -shared $(SONAME) -Wl,--version-script=libpci.ver -o $@ $^ $(LIB_LDLIBS)
58
 
# endif
 
57
        $(CC) -shared $(LDFLAGS) $(SONAME) -Wl,--version-script=libpci.ver -o $@ $^ $(LIB_LDLIBS)
 
58
#endif
59
59
 
60
60
$(PCILIBPC): libpci.pc.in
61
61
        sed <$< >$@ -e 's,@PREFIX@,$(PREFIX),' \
68
68
init.o: init.c $(INCL)
69
69
access.o: access.c $(INCL)
70
70
params.o: params.c $(INCL)
71
 
i386-ports.o: i386-ports.c $(INCL) i386-io-hurd.h i386-io-linux.h i386-io-sunos.h i386-io-windows.h
 
71
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
72
72
proc.o: proc.c $(INCL) pread.h
73
73
sysfs.o: sysfs.c $(INCL) pread.h
74
74
generic.o: generic.c $(INCL)