# Compiler flags
CPPFLAGS += -I$(srcdir)/include -I.
ifeq ($(have_gcc),yes)
+CFLAGS += -fno-builtin-carg # conflicts with our carg()
CFLAGS += -fno-common
CFLAGS += -Wall -W -Wno-unused -Wpointer-arith -Wstrict-prototypes \
-Wmissing-prototypes -Wnested-externs -Wredundant-decls
# automatic dependency generation
%: %.c
+# Work around MinGW Make's broken built-in link rule:
+%$(EXEEXT): %.o
+ $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
+
+
info.nr/%: info/%.t
$(NROFF) -I $(srcdir)/info $(filter %/CRT.MAC, $^) $< | $(AWK) -f $(filter %/Blank.awk, $^) >$@
# FIXME AT&T nroff doesn't grok -I