# # ATTENTION: This Makefile only works with GNU make! # .PHONY: all clean CC=gcc # WARNINGS=-Wall -Wundef -Wshadow -Wcast-qual -Wcast-align -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs STD89=-ansi -pedantic STD99=-std=c99 -pedantic # STD=$(STD99) CFLAGS=-g -pipe $(STD) $(WARNINGS) LIST=$(wildcard *.c) PROGRAMS=$(patsubst %.c,%,$(LIST)) all: $(PROGRAMS) clean: test -z "$(PROGRAMS)" || rm -f $(PROGRAMS)