# makefile for cts demo

# Cardboard Tube Samurai game starring Gabe from Penny Arcade comics
# http://www.penny-arcade.com/

# Artwork by Andrew

# Coding by Bill Kendrick, New Breed Software
# http://www.newbreedsoftware.com/

# March 16, 2003 - March 17, 2003


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

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


all:	ctsdemo

clean:
	-rm ctsdemo
	-rm *.o


ctsdemo:	ctsdemo.o setup.o demoloop.o menuloop.o \
		drawtext.o optionsloop.o
	$(CC) $(CFLAGS) -o ctsdemo \
		ctsdemo.o setup.o demoloop.o menuloop.o \
		drawtext.o optionsloop.o \
		$(LIBS)

ctsdemo.o:	ctsdemo.c setup.h demoloop.h globals.h menuloop.h optionsloop.h

setup.o:	setup.c setup.h globals.h

demoloop.o:	demoloop.c demoloop.h globals.h

menuloop.o:	menuloop.c menuloop.h globals.h drawtext.h

optionsloop.o:	optionsloop.c optionsloop.h globals.h drawtext.h

drawtext.o:	drawtext.c drawtext.h

