BASE = /usr/xnews/nightly-sun4 SCOREFILENAME = /tmp/sdi_scores SCOREFILE = "${SCOREFILENAME}" # The breakdown into SRC 1, 2 and 3 is purely for shar purposes. SRC1 = main.c helpers.c missile.c cursor.c scores.c save_game.c text.c #SRC1 = testmain.c helpers.c missile.c cursor.c scores.c save_game.c text.c SRC2 = control.c blast.c circles.c laser.c rocks.c input.c notify.c control_procs.c SRC3 = intersect.c random.c incoming.c cities.c pr_helpers.c game_over.c argv.c global.c icons.c color.c SRC = ${SRC1} ${SRC2} ${SRC3} EXTRASRC = load.c startit.c old_pr_helpers.c color_p.c H1 = melt.h default_city.h cursor.h laser.h mushroom.h laserkill.h \ missilekill.h city_icon1.h \ city_icon2.h city_icon3.h city_icon4.h city_icon5.h city_icon6.h \ city_icon7.h city_icon8.h rocks.h dynacursor.h foe_picture.h \ laser_picture.h interceptor_picture.h rock_picture.h dyna_picture.h \ silly_picture.h cross_picture.h foe_ground_picture.h \ fancy_icon1.h fancy_icon2.h fancy_icon3.h H2 = fancy_icon4.h fancy_icon5.h \ fancy_icon6.h fancy_icon7.h fancy_icon8.h fancy_icon9.h fancy_icon10.h \ fancy_icon11.h fancy_icon12.h fancy_icon13.h fancy_icon14.h \ fancy_icon15.h fancy_icon16.h fancy_icon17.h fancy_icon18.h \ fancy_icon19.h fancy_icon20.h fancy_icon21.h fancy_icon22.h \ fancy_icon23.h fancy_icon24.h walkmenu_impl.h image_impl.h center.h \ incoming_picture.h pie_generic_cursor.h H = ${H1} ${H2} ADMIN = README xsdi.man HISTORY.nr NOTES TODO makefile genmessage.c \ makehistory.awk editall source_converter.c longfile.nr sdi.h \ lookup.h gameover.h icon.h talkingmark.h makeman.sed novice_advice.h \ occasional_advice.h expert_advice.h about_msg.h instructions.h \ piemenu.h makeversion version.c sdi_color.h ALLFILES = ${ADMIN} ${SRC} ${H} ${EXTRASRC} OBJ = main.o circles.o blast.o missile.o intersect.o random.o incoming.o \ cities.o pr_helpers.o control.o game_over.o helpers.o argv.o global.o \ laser.o icons.o scores.o save_game.o rocks.o notify.o input.o \ control_procs.o cursor.o text.o \ sourcecode.o history.o man.o color.o NOTES.o TODO.o README.o version.o CFLAGS = -g -I${BASE}/include -DNOSTRINGLABELS -temp=/tmp #LIBS = -L/import/X11R4/usr/lib -L${BASE}/lib -lolgx -lxview -lX11 -lm LIBS = -L${BASE}/lib -lpixrect -lxview -lolgx -lX11 -lm all: xsdi test: echo ${LD_LIBRARY_PATH} foo: foo.o cc ${CFLAGS} -o foo foo.o ${LIBS} color_p: color_p.o cc ${CFLAGS} -o color_p color_p.o ${LIBS} xsdi: ${OBJ} cc ${CFLAGS} -o xsdi ${OBJ} ${LIBS} version.o: ${SRC} ${H} ${ADMIN} makeversion version.c cc ${CFLAGS} -c version.c fastsdi: /bin/rm -f sdi echo "**** built with 'make fastsdi', so no on-line source" | expand -4 | source_converter source_code > /tmp/sourcecode.s cc -c /tmp/sourcecode.s /bin/rm -f /tmp/sourcecode.s make sdi sdi src: cat ${SRC} | expand -4 >src saber: history.o man.o version.o #load -L${BASE}/lib ${LIBS} #load sourcecode.o history.o man.o version.o #load ${SRC} ${CFLAGS} sourcecode.o: ${SRC} source_converter cat ${SRC} | expand -4 | source_converter source_code > /tmp/sourcecode.s cc -c /tmp/sourcecode.s /bin/rm -rf /tmp/sourcecode.s history.o: HISTORY.nr source_converter cat longfile.nr HISTORY.nr | tbl | nroff -me | col | awk -f makehistory.awk | source_converter history_text >/tmp/history.s cc -c /tmp/history.s /bin/rm -rf /tmp/history.s NOTES.o: NOTES source_converter source_converter < NOTES NOTES_text > /tmp/NOTES.s cc -c /tmp/NOTES.s /bin/rm -rf /tmp/NOTES.s TODO.o: TODO source_converter source_converter < TODO TODO_text > /tmp/TODO.s cc -c /tmp/TODO.s /bin/rm -rf /tmp/TODO.s README.o: README source_converter source_converter < README README_text > /tmp/README.s cc -c /tmp/README.s /bin/rm -rf /tmp/README.s man.o: xsdi.man source_converter makeman.sed nroff -man longfile.nr xsdi.man | sed -f makeman.sed | col | source_converter man_text >/tmp/man.s cc -c /tmp/man.s /bin/rm -rf /tmp/man.s grind: cat ${SRC} | expand -4 | vgrind -t -h SDI >source.grind textedit: editall ${SRC} ${ADMIN} size: wc ${SRC} wc ${ADMIN} wc ${H} clean: /bin/rm -f xsdi bigmessage.h genmessage *.o *shar source_converter shar: /bin/rm -f xsdi.shar makescript -o xsdi.shar ${ALLFILES} Z: shar /bin/rm -f xsdi.shar.Z compress xsdi.shar splitshar: makescript -o xsdi1.shar ${ADMIN} makescript -o xsdi2.shar ${SRC1} makescript -o xsdi3.shar ${SRC2} makescript -o xsdi4.shar ${SRC3} makescript -o xsdi5.shar ${H1} makescript -o xsdi6.shar ${H2} ${EXTRASRC} ls -l xsdi1.shar xsdi2.shar xsdi3.shar xsdi4.shar xsdi5.shar xsdi6.shar # # ORIGSIZE for game and the constant for bigmessage.h # are related by a factor of 64. # game_over.o: bigmessage.h game_over.c cc ${CFLAGS} -c game_over.c -DORIGSIZE=256 scores.o: scores.c cc ${CFLAGS} -c scores.c '-DSCOREFILE=${SCOREFILE}' bigmessage.h: talkingmark.h echo "short image_bits_rep[] = {" > imagebits.c cat talkingmark.h >> imagebits.c echo "}, *image_bits = image_bits_rep;" >> imagebits.c /bin/rm -f genmessage; make genmessage genmessage 4 >bigmessage.h genmessage: genmessage.c imagebits.c cc ${CFLAGS} -o genmessage imagebits.c genmessage.c ${LIBS} testrandom: random.o testrandom.o cc ${CFLAGS} -o testrandom testrandom.o random.o vectortest: vectortest.o cc ${CFLAGS} -o vectortest vectortest.o ${LIBS} wormtest: wormtest.o cc ${CFLAGS} -o wormtest wormtest.o ${LIBS} icontest: icontest.o cc ${CFLAGS} -o icontest icontest.o ${LIBS} keytest: keytest.o cc ${CFLAGS} -o keytest keytest.o ${LIBS} invert: invert.o cc ${CFLAGS} -o invert invert.o ${LIBS} icons.o: city_icon1.h city_icon2.h city_icon3.h city_icon4.h city_icon5.h city_icon6.h city_icon7.h city_icon8.h bug: bug.o cc -g -o bug bug.o ${LIBS} circles.o: sdi_color.h cities.o: sdi_color.h color.o: sdi_color.h helpers.o: sdi_color.h laser.o: sdi_color.h missile.o: sdi_color.h control.o: sdi_color.h