1 ############################################################################### |
1 ############################################################################### |
2 # |
2 # |
3 # libpciaccess Makefile |
3 # libpciaccess Makefile |
4 # |
4 # |
5 # Copyright 2010 Sun Microsystems, Inc. All rights reserved. |
5 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. |
6 # Use is subject to license terms. |
|
7 # |
6 # |
8 # Permission is hereby granted, free of charge, to any person obtaining a |
7 # Permission is hereby granted, free of charge, to any person obtaining a |
9 # copy of this software and associated documentation files (the "Software"), |
8 # copy of this software and associated documentation files (the "Software"), |
10 # to deal in the Software without restriction, including without limitation |
9 # to deal in the Software without restriction, including without limitation |
11 # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
10 # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
60 # Activate additional debugging code in debug builds |
59 # Activate additional debugging code in debug builds |
61 MODULE_DEBUG_FLAGS=-DDEBUG |
60 MODULE_DEBUG_FLAGS=-DDEBUG |
62 |
61 |
63 # Additional targets for scanpci |
62 # Additional targets for scanpci |
64 MODULE_ADD_SOURCE_TARGETS = source_scanpci_man |
63 MODULE_ADD_SOURCE_TARGETS = source_scanpci_man |
65 MODULE_ADD_INSTALL_TARGETS = install_scanpci |
64 MODULE_ADD_INSTALL_TARGETS_32 = install_scanpci |
|
65 MODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE)) |
66 |
66 |
67 include ../Makefile.inc |
67 include ../Makefile.inc |
68 |
68 |
69 # Update scanpci.man with program man page flags instead of library ones |
69 # Update scanpci.man with program man page flags instead of library ones |
70 source_scanpci_man: default_source |
70 SCANPCI_MAN_SRC = $(SOURCE_DIR)/src/scanpci.man |
|
71 SCANPCI_MAN_OUT = $(SOURCE_DIR)/src/scanpci.1 |
|
72 |
|
73 source_scanpci_man: $(SCANPCI_MAN_OUT) |
|
74 |
|
75 $(SCANPCI_MAN_SRC): $(UNPACK_TARGET) |
|
76 |
|
77 $(SCANPCI_MAN_OUT): $(SCANPCI_MAN_SRC) |
71 (cd $(SOURCE_DIR) && \ |
78 (cd $(SOURCE_DIR) && \ |
72 /usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \ |
79 $(PERL) $(TOP)/common/suntouch-manpages.pl \ |
73 -a '{Availability, $(SUN_PACKAGE)}' \ |
80 $(COMMON_SUNTOUCH_MAN_FLAGS) \ |
74 -a '{Interface Stability, $(MODULE_STABILITY)}' \ |
|
75 -p $(MODULE_PREFIX)/bin/ \ |
81 -p $(MODULE_PREFIX)/bin/ \ |
76 src/scanpci.man && \ |
82 src/scanpci.man && \ |
77 sed -e 's/__xorgversion__/"$(MODULE_NAME) $(MODULE_VERSION)"/' \ |
83 sed -e 's/__xorgversion__/"$(MODULE_NAME) $(MODULE_VERSION)"/' \ |
78 src/scanpci.man > src/scanpci.1 ) |
84 src/scanpci.man > src/scanpci.1 ) |
79 |
85 |
80 # We want to install scanpci, even though the upstream Makefile doesn't |
86 # We want to install scanpci, even though the upstream Makefile doesn't |
81 install_scanpci: default_install |
87 install_scanpci: default_install $(SCANPCI_MAN_OUT) |
82 mkdir -p $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR) \ |
88 mkdir -p $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR) \ |
83 $(PROTODIR)$(MODULE_PREFIX)/share/man/man1 |
89 $(PROTODIR)$(MODULE_PREFIX)/share/man/man1 |
84 $(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/src/scanpci \ |
90 $(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/src/scanpci \ |
85 $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR)/scanpci |
91 $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR)/scanpci |
86 $(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/src/scanpci.1 \ |
92 $(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/src/scanpci.1 \ |