TARGET=redgl

$(TARGET): redgl.o image.o stub.o julia.o md2fast.o
	g++ -g -o $(TARGET) redgl.o image.o julia.o stub.o md2fast.o -lpng -lz `fltk-config --use-gl --ldflags`

redgl.o: redgl.cxx
	g++ -g -c redgl.cxx

redgl.cxx: redgl.fl
	fluid -c redgl.fl

image.o: ../image.c
	gcc -g -o image.o -c ../image.c

julia.o: ../julia.c
	gcc -g -o julia.o -c ../julia.c

md2fast.o: ../md2fast.c
	gcc -g -o md2fast.o -c ../md2fast.c

clean:
	rm *.o
	-rm redgl.exe
	-rm redgl
