Change to Makefile to speedup compilation.

This commit is contained in:
Alan Mishchenko 2015-02-05 14:47:07 -08:00
parent b537110cce
commit 35ab8cbdad
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@ default: $(PROG)
arch_flags : arch_flags.c
$(CC) arch_flags.c -o arch_flags
ARCHFLAGS := $(shell $(CC) arch_flags.c -o arch_flags && ./arch_flags)
ARCHFLAGS ?= $(shell $(CC) arch_flags.c -o arch_flags && ./arch_flags)
ARCHFLAGS := $(ARCHFLAGS)
OPTFLAGS ?= -g -O #-DABC_NAMESPACE=xxx
CFLAGS += -Wall -Wno-unused-function -Wno-write-strings -Wno-sign-compare $(OPTFLAGS) $(ARCHFLAGS) -Isrc