aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-06-20 21:03:24 +0000
committerEric Andersen <andersen@codepoet.org>2000-06-20 21:03:24 +0000
commit28c88a9430ef7c0630e193af642b22b13292c2b3 (patch)
treec5352e731eefc82edba4af84af4b0ecd17135216
parent339b8923130e38d7a68a9488ce2d47b04fb8b146 (diff)
downloadbusybox-w32-28c88a9430ef7c0630e193af642b22b13292c2b3.tar.gz
busybox-w32-28c88a9430ef7c0630e193af642b22b13292c2b3.tar.bz2
busybox-w32-28c88a9430ef7c0630e193af642b22b13292c2b3.zip
Some makefile fixes to allow compiling with ucLibc (stuff turned off
by default of course). -Erik
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 386d8c328..0f5b82e39 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,8 @@ DOSTATIC = false
34# To compile vs an alternative libc, you may need to use/adjust 34# To compile vs an alternative libc, you may need to use/adjust
35# the following lines to meet your needs. This is how I did it... 35# the following lines to meet your needs. This is how I did it...
36#CFLAGS+=-nostdinc -I/home/andersen/CVS/uC-libc/include -I/usr/include/linux 36#CFLAGS+=-nostdinc -I/home/andersen/CVS/uC-libc/include -I/usr/include/linux
37#LDFLAGS+=-nostdlib -L/home/andersen/CVS/libc.a 37#LDFLAGS+=-nostdlib
38#LIBRARIES = /home/andersen/CVS/uC-libc/libc.a
38 39
39 40
40CC = gcc 41CC = gcc
@@ -51,12 +52,12 @@ endif
51 52
52# -D_GNU_SOURCE is needed because environ is used in init.c 53# -D_GNU_SOURCE is needed because environ is used in init.c
53ifeq ($(DODEBUG),true) 54ifeq ($(DODEBUG),true)
54 CFLAGS += -Wall -g -D_GNU_SOURCE 55 CFLAGS += -Wall -g -fno-builtin -D_GNU_SOURCE
55 LDFLAGS = 56 LDFLAGS +=
56 STRIP = 57 STRIP =
57else 58else
58 CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE 59 CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
59 LDFLAGS = -s 60 LDFLAGS += -s
60 STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) 61 STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
61 #Only staticly link when _not_ debugging 62 #Only staticly link when _not_ debugging
62 ifeq ($(DOSTATIC),true) 63 ifeq ($(DOSTATIC),true)
@@ -79,7 +80,6 @@ ifndef $(PREFIX)
79endif 80endif
80 81
81 82
82LIBRARIES =
83OBJECTS = $(shell ./busybox.sh) busybox.o messages.o utility.o 83OBJECTS = $(shell ./busybox.sh) busybox.o messages.o utility.o
84CFLAGS += -DBB_VER='"$(VERSION)"' 84CFLAGS += -DBB_VER='"$(VERSION)"'
85CFLAGS += -DBB_BT='"$(BUILDTIME)"' 85CFLAGS += -DBB_BT='"$(BUILDTIME)"'