ifeq ($(shell uname),Darwin) LDLIBS = -L/usr/local/lib -lSDL -lSDLmain -framework Cocoa else LDLIBS = -L/usr/local/lib -lSDL endif CFLAGS = -I/usr/local/include -Wall -Wno-unused -Werror -g -O OBJS = main.o SDL_prims.o main : $(OBJS) gcc $(OBJS) $(LDLIBS) -o $@ circle : circle.c SDL_prims.o gcc -ggdb3 -Wall -ansi -pedantic circle.c SDL_prims.o $(LDLIBS) -o $@ clean : .FORCE rm -f *~ *.o main *.exe circle .FORCE :