Do not emit cld in the CopyB prologue. The ABI mandates that DF is cleared, so do...
[libfirm] / testprograms / Makefile
1 -include config.mak
2
3 FIRM_CFLAGS ?= `pkg-config --cflags libfirm`
4 FIRM_LIBS   ?= `pkg-config --libs libfirm`
5
6 CC          ?= gcc
7
8 CPPFLAGS += $(FIRM_CFLAGS)
9 CFLAGS += -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Werror -pedantic
10 CFLAGS += -O0 -g3
11 LFLAGS += $(FIRM_LIBS)
12
13 SOURCES   = $(wildcard *.c)
14 GOALS     = $(basename $(SOURCES))
15
16 .PHONY: all
17
18 all: $(GOALS)
19
20 %: %.c
21         $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LFLAGS)
22         strip $@
23
24 clean:
25         rm -f $(GOALS)