Browse Source

lang/perl: Add parallel build support

Signed-off-by: Marcel Denia <naoir@gmx.net>
Marcel Denia 10 years ago
parent
commit
68c59c99e5
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      lang/perl/Makefile

+ 7
- 7
lang/perl/Makefile View File

67
 endef
67
 endef
68
 
68
 
69
 define Build/microperl/Compile
69
 define Build/microperl/Compile
70
-	$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) -f Makefile.micro \
70
+	+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR) -f Makefile.micro \
71
 		CC="gcc" ugenerate_uudmap
71
 		CC="gcc" ugenerate_uudmap
72
-	$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) -f Makefile.micro \
72
+	+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR) -f Makefile.micro \
73
 		CC="$(TARGET_CC)" OPTIMIZE="$(TARGET_CFLAGS)"
73
 		CC="$(TARGET_CC)" OPTIMIZE="$(TARGET_CFLAGS)"
74
 	$(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/bin/
74
 	$(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/bin/
75
 	$(CP) $(PKG_BUILD_DIR)/microperl $(PKG_INSTALL_DIR)/usr/bin/
75
 	$(CP) $(PKG_BUILD_DIR)/microperl $(PKG_INSTALL_DIR)/usr/bin/
102
 	@echo
102
 	@echo
103
 	@echo "===> Stage 2: Build host perl binary with static extensions"
103
 	@echo "===> Stage 2: Build host perl binary with static extensions"
104
 	@echo
104
 	@echo
105
-	$(MAKE) -C $(PKG_BUILD_DIR)/host-perl miniperl
105
+	+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR)/host-perl miniperl
106
 
106
 
107
 	@echo
107
 	@echo
108
 	@echo "===> Stage 3: Configure target perl"
108
 	@echo "===> Stage 3: Configure target perl"
132
 	@echo "===> Stage 4: Build target miniperl binary"
132
 	@echo "===> Stage 4: Build target miniperl binary"
133
 	@echo
133
 	@echo
134
 	install -m 0644 $(PKG_BUILD_DIR)/config.h $(PKG_BUILD_DIR)/xconfig.h
134
 	install -m 0644 $(PKG_BUILD_DIR)/config.h $(PKG_BUILD_DIR)/xconfig.h
135
-	$(MAKE) -C $(PKG_BUILD_DIR) miniperl
135
+	+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR) miniperl
136
 	# Due to the new cross compiling support, make miniperl will never
136
 	# Due to the new cross compiling support, make miniperl will never
137
 	# actually link a target miniperl binary, but will always symlink
137
 	# actually link a target miniperl binary, but will always symlink
138
 	# the one from host-perl. To compensate that, we add a custom rule
138
 	# the one from host-perl. To compensate that, we add a custom rule
139
 	# to the Makefile that corresponds to the one that would have
139
 	# to the Makefile that corresponds to the one that would have
140
 	# been generated if we weren't cross compiling
140
 	# been generated if we weren't cross compiling
141
 	echo -e 'miniperl.target:\n\t$$$$(CC) $$$$(CLDFLAGS) -o miniperl.target $$$$(mini_obj) $$$$(libs)' >> $(PKG_BUILD_DIR)/Makefile
141
 	echo -e 'miniperl.target:\n\t$$$$(CC) $$$$(CLDFLAGS) -o miniperl.target $$$$(mini_obj) $$$$(libs)' >> $(PKG_BUILD_DIR)/Makefile
142
-	$(MAKE) -C $(PKG_BUILD_DIR) miniperl.target
142
+	+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR) miniperl.target
143
 	
143
 	
144
 	mkdir -p $(PKG_BUILD_DIR)/target-bin
144
 	mkdir -p $(PKG_BUILD_DIR)/target-bin
145
 	install -m 0755 $(PKG_BUILD_DIR)/miniperl.target $(PKG_BUILD_DIR)/target-bin/miniperl
145
 	install -m 0755 $(PKG_BUILD_DIR)/miniperl.target $(PKG_BUILD_DIR)/target-bin/miniperl
147
 	@echo
147
 	@echo
148
 	@echo "===> Stage 5: Build target perl binary"
148
 	@echo "===> Stage 5: Build target perl binary"
149
 	@echo
149
 	@echo
150
-	$(MAKE) -C $(PKG_BUILD_DIR) perl
150
+	+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR) perl
151
 	install -m 0755 $(PKG_BUILD_DIR)/perl $(PKG_BUILD_DIR)/target-bin/
151
 	install -m 0755 $(PKG_BUILD_DIR)/perl $(PKG_BUILD_DIR)/target-bin/
152
 
152
 
153
 	@echo
153
 	@echo
154
 	@echo "===> Stage 6: Build target extensions and utils"
154
 	@echo "===> Stage 6: Build target extensions and utils"
155
 	@echo
155
 	@echo
156
-	$(MAKE) -C $(PKG_BUILD_DIR)
156
+	+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR)
157
 
157
 
158
 	@echo
158
 	@echo
159
 	@echo "===> Stage 7: Install Perl into staging dir"
159
 	@echo "===> Stage 7: Install Perl into staging dir"