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=da2bc1da75a78090603ee4348d735b330039e151;hb=cbc65abe11c50aed3d5e7be7d1e736d5ced4f4e8;hpb=bcba00f20216db4b6f42fdf2a06e0590df336023 diff --git a/Makefile.head b/Makefile.head index da2bc1d..03d0832 100644 --- a/Makefile.head +++ b/Makefile.head @@ -49,14 +49,22 @@ CINCS += -I$(TOP)/include/c -I$(TOP)/include/c/std \ WARN += -Wall -Werror OPT += -O2 DEBUG += -g3 -ABI += -freg-struct-return +TFLAGS += -freg-struct-return # Target and ABI flags +ifeq ($(V),) + V := @ +else + override V := +endif -CXXFLAGS += $(CXXINCS) $(DEFS) $(CXXWARN) $(OPT) $(DEBUG) $(ABI) +CXXFLAGS += $(DEFS) $(CXXINCS) $(CXXWARN) $(OPT) $(DEBUG) $(TFLAGS) BUILDCXXFLAGS += $(BUILDDEFS) $(CXXWARN) $(OPT) $(DEBUG) -CFLAGS += $(CINCS) $(DEFS) $(CWARN) $(OPT) $(DEBUG) $(ABI) +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: