aboutsummaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak22
1 files changed, 1 insertions, 21 deletions
diff --git a/Rules.mak b/Rules.mak
index 2f34bfbd2..310797d8a 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -52,26 +52,6 @@ TARGET_OS=linux
52# Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc. 52# Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc.
53LC_ALL:= C 53LC_ALL:= C
54 54
55# If you want to add some simple compiler switches (like -march=i686),
56# especially from the command line, use this instead of CFLAGS directly.
57# For optimization overrides, it's better still to set OPTIMIZATION.
58CFLAGS_EXTRA=$(subst ",, $(strip $(EXTRA_CFLAGS_OPTIONS)))
59# be gentle to vi coloring.. ")
60
61# To compile vs some other alternative libc, you may need to use/adjust
62# the following lines to meet your needs...
63#
64# If you are using Red Hat 6.x with the compatible RPMs (for developing under
65# Red Hat 5.x and glibc 2.0) uncomment the following. Be sure to read about
66# using the compatible RPMs (compat-*) at http://www.redhat.com !
67#LIBCDIR:=/usr/i386-glibc20-linux
68#
69# For other libraries, you are on your own. But these may (or may not) help...
70#LDFLAGS+=-nostdlib
71#LIBRARIES:=$(LIBCDIR)/lib/libc.a -lgcc
72#CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) -funsigned-char
73#GCCINCDIR:=$(shell gcc -print-search-dirs | $(SED) -ne "s/install: \(.*\)/\1include/gp")
74
75# This must bind late because srcdir is reset for every source subdirectory. 55# This must bind late because srcdir is reset for every source subdirectory.
76INCS:=-I$(top_builddir)/include -I$(top_srcdir)/include 56INCS:=-I$(top_builddir)/include -I$(top_srcdir)/include
77CFLAGS=$(INCS) -I$(srcdir) -D_GNU_SOURCE 57CFLAGS=$(INCS) -I$(srcdir) -D_GNU_SOURCE
@@ -343,7 +323,7 @@ endif
343 323
344# Put user-supplied flags at the end, where they 324# Put user-supplied flags at the end, where they
345# have a chance of winning. 325# have a chance of winning.
346CFLAGS += $(CFLAGS_EXTRA) 326-include $(top_builddir)/.config.mak
347 327
348#------------------------------------------------------------ 328#------------------------------------------------------------
349# Installation options 329# Installation options