BINDIR=%%PREFIX%%/bin DATADIR=%%PREFIX%%/share/earthview all: earthview cat WARNING earthview: earthview.c %%CC%% %%CFLAGS%% -DDATADIR=\"$(DATADIR)\" earthview.c -o earthview -L%%X11BASE%%/lib -lX11 -lm -lz -lbz2 install: install -c -s earthview $(BINDIR) mkdir -p $(DATADIR) mkdir -p $(DATADIR)/topography cp -f data/topography.cps data/*.az2 $(DATADIR)/topography mkdir -p $(DATADIR)/population cp -f data/population.cps data/*.pz2 $(DATADIR)/population help: earthview ./earthview -help alt: altitude.jpg pop: population.jpg altitude.jpg: earthview ./earthview -output ppm | convert ppm:- jpg:altitude.jpg population.jpg: earthview ./earthview -population -output ppm | convert ppm:- jpg:population.jpg sun: if [ -r altitude.jpg ]; then sunclock -map -mapimage altitude.jpg ; fi if [ -r population.jpg ]; then sunclock -map -mapimage population.jpg ; fi clean: rm -f core *~ *.jpg earthview