]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/Makefile
MacOS: An attempt to appease compiler picky about attribute placement
[pciutils.git] / lib / Makefile
index a119bdf03564c2cde36df0c41517eee1fbaa108d..a89ac14e42cb9a1354a6d445d7123b7df3e4070c 100644 (file)
@@ -22,6 +22,10 @@ ifdef PCI_HAVE_PM_MMIO_CONF
 OBJS += mmio-ports
 endif
 
+ifdef PCI_HAVE_PM_ECAM
+OBJS += ecam
+endif
+
 ifdef PCI_HAVE_PM_DUMP
 OBJS += dump
 endif
@@ -63,6 +67,10 @@ OBJS += emulated
 OBJS += win32-cfgmgr32
 endif
 
+ifdef PCI_HAVE_PM_WIN32_KLDBG
+OBJS += win32-kldbg
+endif
+
 ifdef PCI_HAVE_PM_WIN32_SYSDBG
 OBJS += win32-sysdbg
 endif
@@ -83,10 +91,12 @@ $(PCIIMPDEF): libpci.ver ver2def.pl
 $(PCIIMPLIB): $(PCIIMPDEF)
        $(DLLTOOL) --input-def $< --output-lib $@
 comma := ,
-dllrsrc.rc: dllrsrc.rc.in
+dllrsrc.rc: winrsrc.rc.in
        sed <$< >$@ -e 's,@PCILIB_VERSION@,$(PCILIB_VERSION),' \
                -e 's,@PCILIB_VERSION_WINRC@,$(subst .,\$(comma),$(PCILIB_VERSION).0),' \
-               -e 's,@PCILIB@,$(PCILIB),' \
+               -e 's,@FILENAME@,$(PCILIB),' \
+               -e 's,@DESCRIPTION@,libpci,' \
+               -e 's,@LIBRARY_BUILD@,1,' \
                -e 's,@DEBUG_BUILD@,$(if $(findstring -g,$(CFLAGS)),1,0),'
 dllrsrc.o: dllrsrc.rc
        $(WINDRES) --input=$< --output=$@ --input-format=rc --output-format=coff
@@ -114,8 +124,9 @@ access.o: access.c $(INCL)
 params.o: params.c $(INCL)
 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
 mmio-ports.o: mmio-ports.c $(INCL)
-proc.o: proc.c $(INCL) pread.h
-sysfs.o: sysfs.c $(INCL) pread.h
+ecam.o: ecam.c $(INCL)
+proc.o: proc.c $(INCL)
+sysfs.o: sysfs.c $(INCL)
 generic.o: generic.c $(INCL)
 emulated.o: emulated.c $(INCL)
 syscalls.o: syscalls.c $(INCL)
@@ -133,6 +144,7 @@ filter.o: filter.c $(INCL)
 nbsd-libpci.o: nbsd-libpci.c $(INCL)
 hurd.o: hurd.c $(INCL)
 win32-cfgmgr32.o: win32-cfgmgr32.c $(INCL)
+win32-kldbg.o: win32-kldbg.c $(INCL)
 win32-sysdbg.o: win32-sysdbg.c $(INCL)
 
 # MinGW32 toolchain has some required Win32 header files in /ddk subdirectory.