aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)"'