include ../global_config

OBJS = buildwindow.o \
	main.o \
	launchwindow.o \
	mwindow.o \
	part.o \
	partwindow.o \
	planet.o \
	position.o \
	rocket.o \
	shuttlebooster.o \
	shuttletank.o \
	subwindow.o \
	texture.o \
	timer.o

CFLAGS += -I../guicast

LIBS = \
	-L/usr/X11R6/lib \
	-lGLU \
	-lGL \
	-lglut \
	-lpng \
	-lX11 \
	-lXext \
	-lm

rockets: $(OBJS)
	g++ -o rockets $(OBJS) $(LIBS)

test: test.o
	gcc -o test test.o $(LIBS)

.C.o:
	$(CC) -c $(CFLAGS) $*.C

.c.o:
	$(GCC) -c $(CFLAGS) $*.c

clean:
	rm -f *.o core rockets
