CC=cc
CFLAGS=-O3 -g -Wall

all: main.c ../rw.o
	$(CC) $(CFLAGS) main.c -c -o main.o
	$(CC) $(CFLAGS) tga.c -c -o tga.o
	$(CC) $(CFLAGS) txd.c -c -o txd.o
	$(CC) -lm main.o txd.o tga.o ../rw.o -o makeps2txd

clean:
	rm -rf *.o *.core
cleanall:
	rm -rf *.o *.core
	rm makeps2txd
