
# Uncomment the line below if you are using Linux
#SDL_LIB = -lSDL

# Uncomment the line below if you are using Mac OS X
SDL_LIB = SDLmain.m -framework SDL -framework Cocoa

# Comment the line below if you are using Linux
#SDL_LIB = SDL.dll

SOURCE = main.c triangle.c drawline.c
HEADER = drawline.h triangle.h teapot_data.h

all: testapp

testapp: $(SOURCE) $(HEADER)
	gcc -Wall -o $@ -Iinclude $(SDL_LIB) $(SOURCE) 

clean:
	rm -f *.o *.exe testapp *~