X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=blobdiff_plain;f=Makefile.head;h=03d083270a5cce746aa3ac0ee426648334beeb50;hp=074249742bf4a0a0ecf55dc5ccc64f563e3cd927;hb=c935c41d1f2969dae860cdb16127779d2970a0e3;hpb=7da27a216a7f4bb3331fe315cdbec69bfcf2c762 diff --git a/Makefile.head b/Makefile.head index 0742497..03d0832 100644 --- a/Makefile.head +++ b/Makefile.head @@ -43,13 +43,28 @@ 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 +TFLAGS += -freg-struct-return # Target and ABI flags +ifeq ($(V),) + V := @ +else + override V := +endif -CXXFLAGS += $(CXXINCS) $(DEFS) $(CXXWARN) $(OPT) $(DEBUG) +CXXFLAGS += $(DEFS) $(CXXINCS) $(CXXWARN) $(OPT) $(DEBUG) $(TFLAGS) BUILDCXXFLAGS += $(BUILDDEFS) $(CXXWARN) $(OPT) $(DEBUG) +CFLAGS += $(CINCS) $(DEFS) $(CWARN) $(OPT) $(DEBUG) $(TFLAGS) +BUILDCFLAGS += $(BUILDDEFS) $(CWARN) $(OPT) $(DEBUG) + +ASFLAGS += $(TFLAGS) +LDFLAGS += $(TFLAGS) + .PHONY: all default rerun dep servers clean distclean .SUFFIXES: