From ca15f19709f55a85c1194b1571ffa53c5b591c4b Mon Sep 17 00:00:00 2001 From: neingeist Date: Sat, 19 Apr 2014 14:34:01 +0200 Subject: [PATCH] macros.txt: list all predefined macros --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d7e1b88..05c9fd1 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ TARGETS=approximate-pi linked-list mandelbrot threads circular-buffer structs \ positional-format-strings EXTRAS=mandelbrot.bmp multibrot.png test-inline-assembly.s \ mtrace-test.trace mtrace-test.txt multibrot-openmp.png -VERYEXTRAS=cppcheck.txt tags +VERYEXTRAS=cppcheck.txt macros.txt tags .PHONY: all all: $(TARGETS) @@ -88,3 +88,6 @@ multibrot-openmp: multibrot-openmp.c mandelbrot-openmp: mandelbrot-openmp.c $(CC_OPENMP) $(CFLAGS_OPENMP) $(shell sdl-config --cflags) -o $@ $< $(shell sdl-config --libs) -lm + +macros.txt: + $(CC) -dM -E -x c /dev/null > $@