3 FIRM_CFLAGS ?= `pkg-config --cflags libfirm`
4 FIRM_LIBS ?= `pkg-config --libs libfirm`
8 CPPFLAGS += $(FIRM_CFLAGS)
9 CFLAGS += -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Werror -pedantic
11 LFLAGS += $(FIRM_LIBS)
13 SOURCES = $(wildcard *.c)
14 GOALS = $(basename $(SOURCES))
21 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LFLAGS)