comparison Makefile @ 109:1c5fa783450b

Convert HOST_CC to HOSTCC to be more like uClibc build.
author Rob Landley <rob@landley.net>
date Mon, 12 Mar 2007 21:17:01 -0400
parents c3d1d74d5d8f
children 8b5ae5f607af
comparison
equal deleted inserted replaced
108:261736dafd2e 109:1c5fa783450b
2 # Copyright 2006 Rob Landley <rob@landley.net> 2 # Copyright 2006 Rob Landley <rob@landley.net>
3 3
4 CFLAGS = -Wall -Wundef -Wno-char-subscripts -Os 4 CFLAGS = -Wall -Wundef -Wno-char-subscripts -Os
5 CC = $(CROSS_COMPILE)gcc $(CFLAGS) -funsigned-char 5 CC = $(CROSS_COMPILE)gcc $(CFLAGS) -funsigned-char
6 STRIP = $(CROSS_COMPILE)strip 6 STRIP = $(CROSS_COMPILE)strip
7 HOST_CC = gcc $(CFLAGS) -funsigned-char 7 HOSTCC = gcc $(CFLAGS) -funsigned-char
8 8
9 all: toybox 9 all: toybox
10 10
11 .PHONY: clean 11 .PHONY: clean
12 12
50 50
51 toybox: toybox_unstripped 51 toybox: toybox_unstripped
52 $(STRIP) toybox_unstripped -o toybox 52 $(STRIP) toybox_unstripped -o toybox
53 53
54 instlist: toybox 54 instlist: toybox
55 $(HOST_CC) -I . scripts/install.c -o instlist 55 $(HOSTCC) -I . scripts/install.c -o instlist
56 56
57 install_flat: instlist 57 install_flat: instlist
58 @mkdir -p $(PREFIX)/ 58 @mkdir -p $(PREFIX)/
59 @cp toybox $(PREFIX)/ 59 @cp toybox $(PREFIX)/
60 @for i in `./instlist`; do ln -s toybox "$(PREFIX)/$$i"; done 60 @for i in `./instlist`; do ln -s toybox "$(PREFIX)/$$i"; done