TARGET=ex3
LIBS = `sdl-config --libs`
CFLAGS = `sdl-config --cflags`
CC = g++ -O3 

all:
	$(CC) $(CFLAGS) -c cspritebase.cxx -o cspritebase.o
	$(CC) $(CFLAGS) -c csprite.cxx -o csprite.o
	$(CC) $(CFLAGS) -c ex3.cxx -o ex3.o
	$(CC) -o $(TARGET) cspritebase.o csprite.o ex3.o $(LIBS)
	strip $(TARGET)
clean:
	rm -f ./*.o $(TARGET) core
