Commit 20d05d39 by Baruch Sterin

minor changes to Makefile: (1) use CC instead of gcc to compile arch_flags, and…

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
parent 88dd9d61
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment