Mercurial > hg > toybox
comparison Makefile @ 31:7d3f0ff39878
Add another warning check and a missing dependency.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 25 Nov 2006 13:32:01 -0500 |
parents | 414625f97667 |
children | b707dfcd403c |
comparison
equal
deleted
inserted
replaced
30:71bfd266fce9 | 31:7d3f0ff39878 |
---|---|
1 # Makefile for toybox. | 1 # Makefile for toybox. |
2 # Copyright 2006 Rob Landley <rob@landley.net> | 2 # Copyright 2006 Rob Landley <rob@landley.net> |
3 | 3 |
4 CFLAGS = -Wall -Os -s | 4 CFLAGS = -Wall -Wundef -Os -s |
5 CC = $(CROSS_COMPILE)gcc $(CFLAGS) | 5 CC = $(CROSS_COMPILE)gcc $(CFLAGS) |
6 HOST_CC = gcc $(CFLAGS) | 6 HOST_CC = gcc $(CFLAGS) |
7 | 7 |
8 all: toybox | 8 all: toybox |
9 | 9 |
26 -e 'g' -e 's/.*/#define USE_&(...) __VA_ARGS__/p' $< > $@ | 26 -e 'g' -e 's/.*/#define USE_&(...) __VA_ARGS__/p' $< > $@ |
27 | 27 |
28 # Actual build | 28 # Actual build |
29 | 29 |
30 toyfiles = main.c toys/*.c lib/*.c | 30 toyfiles = main.c toys/*.c lib/*.c |
31 toybox: gen_config.h $(toyfiles) lib/lib.h toys.h | 31 toybox: gen_config.h $(toyfiles) toys/toylist.h lib/lib.h toys.h |
32 $(CC) -Wall -Os -s -funsigned-char $(CFLAGS) -I . \ | 32 $(CC) -Wall -Os -s -funsigned-char $(CFLAGS) -I . \ |
33 $(toyfiles) -o toybox -ffunction-sections -fdata-sections -Wl,--gc-sections | 33 $(toyfiles) -o toybox -ffunction-sections -fdata-sections -Wl,--gc-sections |
34 | 34 |
35 clean:: | 35 clean:: |
36 rm -f toybox gen_config.h | 36 rm -f toybox gen_config.h |