From 6c0a3841b5fa5c689318e84be65e0402533ef7d1 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Tue, 28 Sep 2010 12:07:21 -0700 Subject: [PATCH] makefile: Show CC flags at the start of compilation --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 92aa984..d48dbd0 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ endif # rules follow -all: libusual.a obj/testcompile +all: info libusual.a obj/testcompile libusual.a: $(objs) $(E) " AR" $@ @@ -110,14 +110,22 @@ sparse: config.mak asms = $(objs:.o=.s) asm: $(asms) -dbg: +dbg: flags @echo srcs=$(srcs) @echo objs=$(objs) @echo hdrs=$(hdrs) + +flags: @echo DEFS=$(DEFS) @echo CFLAGS=$(CFLAGS) @echo CPPFLAGS=$(CPPFLAGS) +info: + @echo CC: $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) + @echo LD: $(LD) $(USUAL_LDFLAGS) $(USUAL_LIBS) $(LIBS) + +.PHONY: flags dbg info + # requires 8.4+ kws: @test -f "$(KWLIST)" || { echo "kwlist.h not found"; exit 1; } -- 2.39.5