From: Scott Wood Date: Sun, 5 Aug 2007 16:35:17 +0000 (-0500) Subject: build: Set flags for building C code, and add AR/RANLIB variables. X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=commitdiff_plain;h=bcba00f20216db4b6f42fdf2a06e0590df336023 build: Set flags for building C code, and add AR/RANLIB variables. --- diff --git a/Makefile.head b/Makefile.head index c550d0c..da2bc1d 100644 --- a/Makefile.head +++ b/Makefile.head @@ -43,6 +43,9 @@ CXXINCS += -I$(TOP)/include/c++ -I$(GENINCLUDES)/c++ \ -I$(TOP)/include/c -I$(TOP)/include/c/std \ -I$(BUILDDIR)/include +CINCS += -I$(TOP)/include/c -I$(TOP)/include/c/std \ + -I$(BUILDDIR)/include + WARN += -Wall -Werror OPT += -O2 DEBUG += -g3 @@ -51,6 +54,9 @@ ABI += -freg-struct-return CXXFLAGS += $(CXXINCS) $(DEFS) $(CXXWARN) $(OPT) $(DEBUG) $(ABI) BUILDCXXFLAGS += $(BUILDDEFS) $(CXXWARN) $(OPT) $(DEBUG) +CFLAGS += $(CINCS) $(DEFS) $(CWARN) $(OPT) $(DEBUG) $(ABI) +BUILDCFLAGS += $(BUILDDEFS) $(CWARN) $(OPT) $(DEBUG) + .PHONY: all default rerun dep servers clean distclean .SUFFIXES: diff --git a/Makefile.target b/Makefile.target index 32102e4..7167a54 100644 --- a/Makefile.target +++ b/Makefile.target @@ -79,11 +79,13 @@ BUILDCXX := g++ CC := $(CROSS)g++ CXX := $(CROSS)g++ AS := $(CROSS)as +AR := $(CROSS)ar LD := $(CROSS)ld STRIP := $(CROSS)strip DEFS += -D_LL_ARCH_$(ARCH) -D_LL_ARCH=$(ARCH) MKDIR := mkdir -p MV := mv +RANLIB := $(CROSS)ranlib RM := rm -f RMDIR := rm -rf LN := ln -s