obj = saf_bench.o j35_draken.o tu_95.o bmp_alpha.o runway.o skybox1.o \
skybox2.o ground2.o digits.o menus.o
bin = saf_bench
+data_url = http://mutantstargoat.com/~nuclear/saf_bench_data.zip
CXX = g++
CXXFLAGS = -O3 -ffast-math
LDFLAGS = -lGL -lGLU -lglut
+.PHONY: all
+all: $(bin) textures/draken/j35_draken.bmp
+
$(bin): $(obj)
$(CXX) -o $@ $(obj) $(LDFLAGS)
+textures/draken/j35_draken.bmp: saf_bench_data.zip
+
+saf_bench_data.zip:
+ wget $(data_url) || curl -o $@ $(data_url)
+ unzip -o $@
+
.PHONY: clean
clean:
rm -f $(obj) $(bin)