summaryrefslogtreecommitdiff
path: root/packages/dash/files/makefile-build-cc.diff
blob: 8ffd6c2c37e3c18199a5f6adab40fcc6701166ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- dash-0.5.1/src/Makefile.am.orig	2004-07-03 05:13:27.000000000 +0200
+++ dash-0.5.1/src/Makefile.am	2005-01-11 11:14:11.896299544 +0100
@@ -3,6 +3,7 @@
 AM_CPPFLAGS = -include $(top_builddir)/config.h
 AM_YFLAGS = -d
 
+BUILD_CC ?= gcc
 CFLAGS = -g -O2 -Wall
 DEFS = \
 	-DBSD=1 -DSMALL -DSHELL \
@@ -35,6 +36,18 @@
 	mktokens mkbuiltins builtins.def mkinit.c \
 	mknodes.c nodetypes nodes.c.pat mksyntax.c mksignames.c
 
+mknodes:
+	$(BUILD_CC) mknodes.c -o mknodes
+
+mksyntax:
+	$(BUILD_CC) mksyntax.c -o mksyntax
+
+mkinit:
+	$(BUILD_CC) mkinit.c -o mkinit
+
+mksignames:
+	$(BUILD_CC) mksignames.c -o mksignames
+				
 token.h: mktokens
 	sh $^