minor changes to Makefile: (1) use CC instead of gcc to compile arch_flags, and (2) make sure arch_flags is cleaned in make clean

This commit is contained in:
Baruch Sterin 2012-01-21 18:38:09 -08:00
parent 88dd9d619f
commit 20d05d39fc
1 changed files with 3 additions and 3 deletions

View File

@ -31,9 +31,9 @@ all: $(PROG)
default: $(PROG)
arch_flags : arch_flags.c
gcc arch_flags.c -o arch_flags
$(CC) arch_flags.c -o arch_flags
ARCHFLAGS := $(shell gcc arch_flags.c -o arch_flags && ./arch_flags)
ARCHFLAGS := $(shell $(CC) arch_flags.c -o arch_flags && ./arch_flags)
OPTFLAGS := -g -O #-DABC_NAMESPACE=xxx
CFLAGS += -Wall -Wno-unused-function $(OPTFLAGS) $(ARCHFLAGS) -I$(PWD)
@ -43,7 +43,7 @@ CXXFLAGS += $(CFLAGS)
LIBS := -lreadline
SRC :=
GARBAGE := core core.* *.stackdump ./tags $(PROG)
GARBAGE := core core.* *.stackdump ./tags $(PROG) arch_flags
.PHONY: tags clean docs