INCLUDE = -I/usr/include/ LIBDIR = -L/usr/X11R6/lib COMPILERFLAGS = -Wall CC = gcc CFLAGS = $(COMPILERFLAGS) $(INCLUDE) LIBRARIES = -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm all: $(basename $(wildcard du[1-9a].c)) du%: du%.o $(CC) $(CFLAGS) -o $@ $(LIBDIR) $< $(LIBRARIES)