# Makefile for Quaternary images CC = gcc CFLAGS = -O2 SRC = ../../src BIN = ../../bin TBASE = ../../tbase/patched/tbase.bin ETOPO5 = ../../etopo5/etopo5.img ICE4G_I = ../../peltier/ice_cover ICE4G_T = ../../peltier/topography PPM = \ ppm/top00.ppm ppm/top01.ppm ppm/top02.ppm ppm/top03.ppm \ ppm/top04.ppm ppm/top05.ppm ppm/top06.ppm ppm/top07.ppm \ ppm/top08.ppm ppm/top09.ppm ppm/top10.ppm ppm/top11.ppm \ ppm/top12.ppm ppm/top13.ppm ppm/top14.ppm ppm/top15.ppm \ ppm/top16.ppm ppm/top17.ppm ppm/top18.ppm ppm/top19.ppm \ ppm/top20.ppm ppm/top21.ppm GIF = \ gif/top00.gif gif/top01.gif gif/top02.gif gif/top03.gif \ gif/top04.gif gif/top05.gif gif/top06.gif gif/top07.gif \ gif/top08.gif gif/top09.gif gif/top10.gif gif/top11.gif \ gif/top12.gif gif/top13.gif gif/top14.gif gif/top15.gif \ gif/top16.gif gif/top17.gif gif/top18.gif gif/top19.gif \ gif/top20.gif gif/top21.gif PICT = \ pict/top00.pict pict/top01.pict pict/top02.pict pict/top03.pict \ pict/top04.pict pict/top05.pict pict/top06.pict pict/top07.pict \ pict/top08.pict pict/top09.pict pict/top10.pict pict/top11.pict \ pict/top12.pict pict/top13.pict pict/top14.pict pict/top15.pict \ pict/top16.pict pict/top17.pict pict/top18.pict pict/top19.pict \ pict/top20.pict pict/top21.pict ANIM = anim/mpeg/ice_age.mpg anim/gif/ice_age.gif all: $(PPM) $(GIF) $(PICT) $(ANIM) $(BIN)/color_ice4g: $(SRC)/color_ice4g.c $(CC) $(CFLAGS) $(SRC)/color_ice4g.c -o $(BIN)/color_ice4g # Images based on ICE4G ppm/top00.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.00 $(ICE4G_T)/top.00 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.00 -t $(ICE4G_T)/top.00 -o ppm/top00.ppm pnmcat -tb ppm/top00.ppm label/label00.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top00.ppm rm ppm/q.ppm ppm/top01.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.01 $(ICE4G_T)/top.01 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.01 -t $(ICE4G_T)/top.01 -o ppm/top01.ppm pnmcat -tb ppm/top01.ppm label/label01.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top01.ppm rm ppm/q.ppm ppm/top02.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.02 $(ICE4G_T)/top.02 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.02 -t $(ICE4G_T)/top.02 -o ppm/top02.ppm pnmcat -tb ppm/top02.ppm label/label02.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top02.ppm rm ppm/q.ppm ppm/top03.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.03 $(ICE4G_T)/top.03 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.03 -t $(ICE4G_T)/top.03 -o ppm/top03.ppm pnmcat -tb ppm/top03.ppm label/label03.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top03.ppm rm ppm/q.ppm ppm/top04.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.04 $(ICE4G_T)/top.04 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.04 -t $(ICE4G_T)/top.04 -o ppm/top04.ppm pnmcat -tb ppm/top04.ppm label/label04.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top04.ppm rm ppm/q.ppm ppm/top05.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.05 $(ICE4G_T)/top.05 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.05 -t $(ICE4G_T)/top.05 -o ppm/top05.ppm pnmcat -tb ppm/top05.ppm label/label05.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top05.ppm rm ppm/q.ppm ppm/top06.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.06 $(ICE4G_T)/top.06 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.06 -t $(ICE4G_T)/top.06 -o ppm/top06.ppm pnmcat -tb ppm/top06.ppm label/label06.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top06.ppm rm ppm/q.ppm ppm/top07.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.07 $(ICE4G_T)/top.07 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.07 -t $(ICE4G_T)/top.07 -o ppm/top07.ppm pnmcat -tb ppm/top07.ppm label/label07.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top07.ppm rm ppm/q.ppm ppm/top08.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.08 $(ICE4G_T)/top.08 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.08 -t $(ICE4G_T)/top.08 -o ppm/top08.ppm pnmcat -tb ppm/top08.ppm label/label08.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top08.ppm rm ppm/q.ppm ppm/top09.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.09 $(ICE4G_T)/top.09 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.09 -t $(ICE4G_T)/top.09 -o ppm/top09.ppm pnmcat -tb ppm/top09.ppm label/label09.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top09.ppm rm ppm/q.ppm ppm/top10.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.10 $(ICE4G_T)/top.10 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.10 -t $(ICE4G_T)/top.10 -o ppm/top10.ppm pnmcat -tb ppm/top10.ppm label/label10.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top10.ppm rm ppm/q.ppm ppm/top11.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.11 $(ICE4G_T)/top.11 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.11 -t $(ICE4G_T)/top.11 -o ppm/top11.ppm pnmcat -tb ppm/top11.ppm label/label11.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top11.ppm rm ppm/q.ppm ppm/top12.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.12 $(ICE4G_T)/top.12 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.12 -t $(ICE4G_T)/top.12 -o ppm/top12.ppm pnmcat -tb ppm/top12.ppm label/label12.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top12.ppm rm ppm/q.ppm ppm/top13.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.13 $(ICE4G_T)/top.13 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.13 -t $(ICE4G_T)/top.13 -o ppm/top13.ppm pnmcat -tb ppm/top13.ppm label/label13.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top13.ppm rm ppm/q.ppm ppm/top14.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.14 $(ICE4G_T)/top.14 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.14 -t $(ICE4G_T)/top.14 -o ppm/top14.ppm pnmcat -tb ppm/top14.ppm label/label14.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top14.ppm rm ppm/q.ppm ppm/top15.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.15 $(ICE4G_T)/top.15 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.15 -t $(ICE4G_T)/top.15 -o ppm/top15.ppm pnmcat -tb ppm/top15.ppm label/label15.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top15.ppm rm ppm/q.ppm ppm/top16.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.16 $(ICE4G_T)/top.16 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.16 -t $(ICE4G_T)/top.16 -o ppm/top16.ppm pnmcat -tb ppm/top16.ppm label/label16.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top16.ppm rm ppm/q.ppm ppm/top17.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.17 $(ICE4G_T)/top.17 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.17 -t $(ICE4G_T)/top.17 -o ppm/top17.ppm pnmcat -tb ppm/top17.ppm label/label17.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top17.ppm rm ppm/q.ppm ppm/top18.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.18 $(ICE4G_T)/top.18 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.18 -t $(ICE4G_T)/top.18 -o ppm/top18.ppm pnmcat -tb ppm/top18.ppm label/label18.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top18.ppm rm ppm/q.ppm ppm/top19.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.19 $(ICE4G_T)/top.19 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.19 -t $(ICE4G_T)/top.19 -o ppm/top19.ppm pnmcat -tb ppm/top19.ppm label/label19.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top19.ppm rm ppm/q.ppm ppm/top20.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.20 $(ICE4G_T)/top.20 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.20 -t $(ICE4G_T)/top.20 -o ppm/top20.ppm pnmcat -tb ppm/top20.ppm label/label20.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top20.ppm rm ppm/q.ppm ppm/top21.ppm: $(BIN)/color_ice4g $(ICE4G_I)/is_ice.21 $(ICE4G_T)/top.21 $(BIN)/color_ice4g -i $(ICE4G_I)/is_ice.21 -t $(ICE4G_T)/top.21 -o ppm/top21.ppm pnmcat -tb ppm/top21.ppm label/label21.ppm >ppm/q.ppm pnmmargin -black 4 ppm/q.ppm >ppm/top21.ppm rm ppm/q.ppm # GIF images gif/top00.gif: ppm/top00.ppm ppmtogif ppm/top00.ppm >gif/top00.gif gif/top01.gif: ppm/top01.ppm ppmtogif ppm/top01.ppm >gif/top01.gif gif/top02.gif: ppm/top02.ppm ppmtogif ppm/top02.ppm >gif/top02.gif gif/top03.gif: ppm/top03.ppm ppmtogif ppm/top03.ppm >gif/top03.gif gif/top04.gif: ppm/top04.ppm ppmtogif ppm/top04.ppm >gif/top04.gif gif/top05.gif: ppm/top05.ppm ppmtogif ppm/top05.ppm >gif/top05.gif gif/top06.gif: ppm/top06.ppm ppmtogif ppm/top06.ppm >gif/top06.gif gif/top07.gif: ppm/top07.ppm ppmtogif ppm/top07.ppm >gif/top07.gif gif/top08.gif: ppm/top08.ppm ppmtogif ppm/top08.ppm >gif/top08.gif gif/top09.gif: ppm/top09.ppm ppmtogif ppm/top09.ppm >gif/top09.gif gif/top10.gif: ppm/top10.ppm ppmtogif ppm/top10.ppm >gif/top10.gif gif/top11.gif: ppm/top11.ppm ppmtogif ppm/top11.ppm >gif/top11.gif gif/top12.gif: ppm/top12.ppm ppmtogif ppm/top12.ppm >gif/top12.gif gif/top13.gif: ppm/top13.ppm ppmtogif ppm/top13.ppm >gif/top13.gif gif/top14.gif: ppm/top14.ppm ppmtogif ppm/top14.ppm >gif/top14.gif gif/top15.gif: ppm/top15.ppm ppmtogif ppm/top15.ppm >gif/top15.gif gif/top16.gif: ppm/top16.ppm ppmtogif ppm/top16.ppm >gif/top16.gif gif/top17.gif: ppm/top17.ppm ppmtogif ppm/top17.ppm >gif/top17.gif gif/top18.gif: ppm/top18.ppm ppmtogif ppm/top18.ppm >gif/top18.gif gif/top19.gif: ppm/top19.ppm ppmtogif ppm/top19.ppm >gif/top19.gif gif/top20.gif: ppm/top20.ppm ppmtogif ppm/top20.ppm >gif/top20.gif gif/top21.gif: ppm/top21.ppm ppmtogif ppm/top21.ppm >gif/top21.gif # PICT format images for Macintosh users pict/top00.pict: ppm/top00.ppm ppmtopict ppm/top00.ppm >pict/top00.pict pict/top01.pict: ppm/top01.ppm ppmtopict ppm/top01.ppm >pict/top01.pict pict/top02.pict: ppm/top02.ppm ppmtopict ppm/top02.ppm >pict/top02.pict pict/top03.pict: ppm/top03.ppm ppmtopict ppm/top03.ppm >pict/top03.pict pict/top04.pict: ppm/top04.ppm ppmtopict ppm/top04.ppm >pict/top04.pict pict/top05.pict: ppm/top05.ppm ppmtopict ppm/top05.ppm >pict/top05.pict pict/top06.pict: ppm/top06.ppm ppmtopict ppm/top06.ppm >pict/top06.pict pict/top07.pict: ppm/top07.ppm ppmtopict ppm/top07.ppm >pict/top07.pict pict/top08.pict: ppm/top08.ppm ppmtopict ppm/top08.ppm >pict/top08.pict pict/top09.pict: ppm/top09.ppm ppmtopict ppm/top09.ppm >pict/top09.pict pict/top10.pict: ppm/top10.ppm ppmtopict ppm/top10.ppm >pict/top10.pict pict/top11.pict: ppm/top11.ppm ppmtopict ppm/top11.ppm >pict/top11.pict pict/top12.pict: ppm/top12.ppm ppmtopict ppm/top12.ppm >pict/top12.pict pict/top13.pict: ppm/top13.ppm ppmtopict ppm/top13.ppm >pict/top13.pict pict/top14.pict: ppm/top14.ppm ppmtopict ppm/top14.ppm >pict/top14.pict pict/top15.pict: ppm/top15.ppm ppmtopict ppm/top15.ppm >pict/top15.pict pict/top16.pict: ppm/top16.ppm ppmtopict ppm/top16.ppm >pict/top16.pict pict/top17.pict: ppm/top17.ppm ppmtopict ppm/top17.ppm >pict/top17.pict pict/top18.pict: ppm/top18.ppm ppmtopict ppm/top18.ppm >pict/top18.pict pict/top19.pict: ppm/top19.ppm ppmtopict ppm/top19.ppm >pict/top19.pict pict/top20.pict: ppm/top20.ppm ppmtopict ppm/top20.ppm >pict/top20.pict pict/top21.pict: ppm/top21.ppm ppmtopict ppm/top21.ppm >pict/top21.pict # Animation anim/mpeg/ice_age.mpg: $(PPM) mpeg_encode anim/mpeg/ice_age.cfg anim/gif/ice_age.gif: $(GIF) gifmerge -l1000 gif/top21.gif gif/top20.gif gif/top19.gif gif/top18.gif gif/top17.gif gif/top16.gif gif/top15.gif gif/top14.gif gif/top13.gif gif/top12.gif gif/top11.gif gif/top10.gif gif/top09.gif gif/top08.gif gif/top07.gif gif/top06.gif gif/top05.gif gif/top04.gif gif/top03.gif gif/top02.gif gif/top01.gif gif/top00.gif >anim/gif/ice_age.gif # end