equal
deleted
inserted
replaced
25 # Rules and Macros for building opens source software that uses configure / |
25 # Rules and Macros for building opens source software that uses configure / |
26 # GNU auto* tools to configure their build for the system they are on. This |
26 # GNU auto* tools to configure their build for the system they are on. This |
27 # uses GNU Make to build the components to take advantage of the viewpath |
27 # uses GNU Make to build the components to take advantage of the viewpath |
28 # support and build multiple version (32/64 bit) from a shared source. |
28 # support and build multiple version (32/64 bit) from a shared source. |
29 # |
29 # |
30 # To use these rules, include ../make-rules/configure.mk in your Makefile |
30 # To use these rules, include $(WS_MAKE_RULES)/configure.mk in your Makefile |
31 # and define "build", "install", and "test" targets appropriate to building |
31 # and define "build", "install", and "test" targets appropriate to building |
32 # your component. |
32 # your component. |
33 # Ex: |
33 # Ex: |
34 # |
34 # |
35 # build: $(SOURCE_DIR)/build/$(MACH32)/.built \ |
35 # build: $(SOURCE_DIR)/build/$(MACH32)/.built \ |
133 $(COMPONENT_INSTALL_ARGS) $(COMPONENT_INSTALL_TARGETS)) |
133 $(COMPONENT_INSTALL_ARGS) $(COMPONENT_INSTALL_TARGETS)) |
134 $(COMPONENT_POST_INSTALL_ACTION) |
134 $(COMPONENT_POST_INSTALL_ACTION) |
135 $(TOUCH) $@ |
135 $(TOUCH) $@ |
136 |
136 |
137 # test the built source |
137 # test the built source |
138 $(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built |
138 $(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built |
139 $(COMPONENT_PRE_TEST_ACTION) |
139 $(COMPONENT_PRE_TEST_ACTION) |
140 (cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
140 (cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
141 $(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS)) |
141 $(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS)) |
142 $(COMPONENT_POST_TEST_ACTION) |
142 $(COMPONENT_POST_TEST_ACTION) |
143 $(TOUCH) $@ |
143 $(TOUCH) $@ |
144 |
144 |
145 ifeq ($(strip $(PARFAIT_BUILD)),yes) |
145 ifeq ($(strip $(PARFAIT_BUILD)),yes) |
146 parfait: build |
146 parfait: build |
149 $(MAKE) PARFAIT_BUILD=yes parfait |
149 $(MAKE) PARFAIT_BUILD=yes parfait |
150 endif |
150 endif |
151 |
151 |
152 clean:: |
152 clean:: |
153 $(RM) -r $(BUILD_DIR) $(PROTO_DIR) |
153 $(RM) -r $(BUILD_DIR) $(PROTO_DIR) |
|
154 |
|
155 REQUIRED_PACKAGES += developer/build/autoconf |
|
156 REQUIRED_PACKAGES += developer/build/automake-110 |
|
157 REQUIRED_PACKAGES += developer/build/gnu-make |
|
158 REQUIRED_PACKAGES += developer/build/libtool |
|
159 REQUIRED_PACKAGES += developer/build/pkg-config |
|
160 REQUIRED_PACKAGES += developer/macro/gnu-m4 |
|
161 REQUIRED_PACKAGES += file/gnu-coreutils |
|
162 REQUIRED_PACKAGES += library/libtool/libltdl |