]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - Makefile.head
makefile: introduce target flags (TFLAGS)
[polintos/scott/priv.git] / Makefile.head
index e3665175dfd8d6aa7636cdb10118ec2323e7b479..03d083270a5cce746aa3ac0ee426648334beeb50 100644 (file)
@@ -49,19 +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 += $(DEFS) $(CXXINCS) $(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: