diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-01-27 08:24:39 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-01-27 08:24:39 +0000 |
commit | ed3ef50c233ffb1b50ea0e7382a8e60b86491009 (patch) | |
tree | ecb05ce51890c2cf84ad036543a972ac812320c3 /Makefile | |
parent | ab050f5522e843bf08994685134adaaac7ffd392 (diff) | |
download | busybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.tar.gz busybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.tar.bz2 busybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.zip |
Fix header file usage -- there were many unnecessary header files included in
busybox.h which slowed compiles. I left only what was needed and then fixed up
all the apps to include their own header files. I also fixed naming for pwd.h
and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc.
-Erik
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -81,24 +81,19 @@ CROSS = | |||
81 | CC = $(CROSS)gcc | 81 | CC = $(CROSS)gcc |
82 | STRIPTOOL = $(CROSS)strip | 82 | STRIPTOOL = $(CROSS)strip |
83 | 83 | ||
84 | # To compile vs an alternative libc, you may need to use/adjust | 84 | # To compile vs uClibc, just use the compiler wrapper built by uClibc... |
85 | # the following lines to meet your needs. This is how I make | 85 | # Isn't that easy? Right now, uClibc needs BB_FEATURE_NFSMOUNT disabled |
86 | # busybox compile staticly with uClibc (needs BB_FEATURE_NFSMOUNT | 86 | # since uClibc's nfs support isn't ready yet. |
87 | # disabled at the moment). Note the _full_ path for LIBCDIR. | 87 | #CC = ../uClibc/extra/gcc-uClibc/gcc-uClibc-i386 |
88 | # This is because make doesn't do ~ expansion... | 88 | |
89 | #LIBCDIR=/home/andersen/CVS/uClibc | 89 | # To compile vs some other alternative libc, you may need to use/adjust |
90 | # the following lines to meet your needs... | ||
91 | #LIBCDIR=/usr/i486-linuxlibc1/ | ||
90 | #LDFLAGS+=-nostdlib | 92 | #LDFLAGS+=-nostdlib |
91 | #LIBRARIES = $(LIBCDIR)/libc.a -lgcc | 93 | #LIBRARIES = $(LIBCDIR)/libc.a -lgcc |
92 | #CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) | 94 | #CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) |
93 | #GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") | 95 | #GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") |
94 | 96 | ||
95 | # This is how I compile with the uClibc shared lib... | ||
96 | #LIBCDIR=/home/andersen/CVS/uClibc | ||
97 | #LDFLAGS+=-nostdlib | ||
98 | #LIBRARIES = -luClibc -lgcc $(LIBCDIR)/crt0.o | ||
99 | #CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) | ||
100 | #GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") | ||
101 | |||
102 | #-------------------------------------------------------- | 97 | #-------------------------------------------------------- |
103 | 98 | ||
104 | # use '-Os' optimization if available, else use -O2 | 99 | # use '-Os' optimization if available, else use -O2 |