CFLAGS=-Wall -O2 $(SDL_CFLAGS)
LIBS=$(SDL_LIBS)

SDL_CFLAGS=$(shell sdl-config --cflags)
SDL_LIBS=$(shell sdl-config --libs) -lm


all:    whip

clean:
	-rm whip
	-rm whip.o

whip: whip.o
	$(CC) $(CFLAGS) whip.o -o whip $(LIBS)

whip.o:       whip.c
