# --------------- # XBL Makefile.in # --------------- # In the following program, text within @ is substitute # by ``configure'' script. # YOU MUST RUN "configure" TO CREATE THE Makefile from Makefile.in ########################################################################### # You must verify the 2 next values ########################################################################### # If xbl must NOT run with SGID bit (for protect scores files) then # comment next line USE_SETGID=-DUSE_SETGID # group owner of games file. GROUP_GID=5 @GROUP_GID@ ########################################################################### # You don't need to read below if you have xmkmf or imake # and want to use them. ########################################################################### # Comment next line if you don't want to use "xmkmf" informations. USE_XMKMF=YES # Comment next line if you don't want to use "imake" informations. IMAKE_OPTIONS=-DTOP=/ -DUseInstalled # Directory who contain X Resource Database # The default value if overrided by configure if xmkmf or imake exists. # RESOURCEDIR=/usr/lib/X11/app-defaults @XAPPLOADDIR@ # Directory where install binary # The default value if overrided by configure if xmkmf or imake exists. # BINDIR=/usr/local/bin @BINDIR@ # Directory who contain score # Put your HOME if you have a private use of the game # The default value if overrided by configure if xmkmf or imake exists. # SCOREDIR=/usr/local/lib/xbl @SCOREDIR@ # Directory where put man pages. # The default value if overrided by configure if xmkmf or imake exists. # MANPATH=/usr/local/man @MANPATH@ ########################################################################### # Some values defined in imakefiles ########################################################################### # For compile CC=@CC@ # For copy CP=cp @CP@ # For remove RM=rm -f @RM@ # For symbolic link LN=ln -s @LN@ # for file compression COMPRESS=gzip # @COMPRESS@ # Linker LINT=lint @LINT@ # Link specifics options LINTFLAGS=-Zf1000 -Zn4096 -Zt10000 @LINTFLAGS@ ########################################################################### # YOU DON'T NEED TO READ BELOW ########################################################################### # For linking (configure script will modify this line) # xmkmf et imake informations are take into account. LIBS = @LIBS@ -lm -lX11 -lcompat all:demo XBLVERSION=1.1.5 XBL=xbl-$(XBLVERSION) CFLAGS = -DSCOREDIR=\"$(SCOREDIR)\" \ -DRESOURCEDIR=\"$(RESOURCEDIR)\" \ -DXBLVERSION=\"$(XBLVERSION)\" \ -DGROUP_GID=$(GROUP_GID) \ $(USE_SETGID) @DEFS@ @CFLA@ -g # For link edit options LDOPTIONS=$(CFLAGS) LDOPTIONS=@LDOPTIONS@ SRC=bl.c initdisp.c initgc.c initwin.c options.c \ bloc.c transfo.c initbuffer.c help.c demo.c \ movingbloc.c loop.c draw.c opbloc.c realtime.c initbloc.c menu.c \ initmenu.c score.c sound.c buttons.c movingbutton.c zoo.c gameevent.c OBJ=$(SRC:.c=.o) demo:bl @echo "You can test the play by typing : 'bl'" @echo "Scores will not be memorized" @echo "***----------------------------------------***" @echo "*** You must find the best buffering mode ***" @echo "*** on your host/display. ***" @echo "*** Same for the button height; on slow ***" @echo "*** screens, limit yourself to 2 or 1 ***" @echo "*** You must specify these defaults in the ***" @echo "*** Xbl.ad file, before typing: ***" @echo "*** make install ***" @echo "***----------------------------------------***" # XBLOPTIONS="-shownext" ; export XBLOPTIONS ; bl -smooth keyboard=1 install:bl @echo "Executable go in $(BINDIR)" @echo "Scores go in $(SCOREDIR)" @echo "Defaults go in $(RESOURCEDIR)/Xbl" @echo "Man pages go in $(MANPATH)/man1" @-if [ "" != "$(USE_SETGID)" ] ; then \ echo "You use GID=$(GROUP_GID) protection" ; \ fi # # Remove old score file # @-if [ -d "$(SCOREDIR)" ] ; \ then \ rm $(SCOREDIR)/[1-9]* ; \ fi # # Install executable # $(BSD_INSTALL_PROGRAM) bl $(BINDIR)/xbl -if [ "" = "$(USE_SETGID)" ] ; then \ chmod 755 $(BINDIR)/xbl ;\ else \ chmod 2755 $(BINDIR)/xbl ;\ chown root $(BINDIR)/xbl ;\ chgrp $(GROUP_GID) $(BINDIR)/xbl ;\ fi # # Install executable # -mkdir $(SCOREDIR) 2>/dev/null $(CP) Xbl.ad $(RESOURCEDIR)/Xbl ; chmod 644 $(RESOURCEDIR)/Xbl $(CP) Xbl.ad $(SCOREDIR)/Xbl ; chmod 644 $(SCOREDIR)/Xbl -if [ "" = "$(USE_SETGID)" ] ; then \ chmod 777 $(SCOREDIR) ;\ chmod 666 $(SCOREDIR)/[1-9]* ;\ else \ chmod 775 $(SCOREDIR) ;\ fi # # Install manual pages # $(CP) xbl.man $(MANPATH)/man1/xbl.1 ;\ chmod 444 $(MANPATH)/man1/xbl.1 ; \ cp *.gif *.html $(SCOREDIR) # -ls -lsa $(SCOREDIR) $(BINDIR)/xbl $(MANPATH)/man1/xbl.1 @echo "Type xbl to play" bl:$(OBJ) $(CC) $(LDOPTIONS) $(OBJ) $(LIBS) -o $@ LINT:$(SRC) $(LINT) $(LINTFLAGS) $(CFLAGS) $(LIBS) $(SRC) | \ fgrep -v _XrmHashBucketRec | fgrep -v XKeytrans >$@ 2>&1 shar:tar echo "# Delete headers & execute with /bin/sh" >xbl-$(XBLVERSION).shar echo "#!/bin/sh" >>xbl-$(XBLVERSION).shar echo "atob >xbl-$(XBLVERSION).tar.gz <<'END OF FILE PATTERN'" \ >>xbl-$(XBLVERSION).shar btoa >xbl-$(XBLVERSION).shar echo "END OF FILE PATTERN" >>xbl-$(XBLVERSION).shar echo "exit" >>xbl-$(XBLVERSION).shar tar:xbl-$(XBLVERSION).tar.gz TO_SAVE = README INSTALL COPYING \ Xbl.ad Makefile.in \ configure.in configure change-version.py \ xbl-README xbl.man xbl.html xbl-man.html Xbl.iafa Xbl.lsm \ *.gif *.h *.c *.bm xbl-$(XBLVERSION).tar.gz:$(TO_SAVE) $(LN) . $(XBL) tar -cvf - `for I in $(TO_SAVE); do echo $(XBL)/$$I ; done` | \ $(COMPRESS) >../$@ $(RM) $(XBL) speedtest:bl @echo "THIS TEST WILL TAKE SOME TIME" @echo "DON'T TOUCH YOUR SCREEN....." @echo "DON'T USE YOUR CPU...." @echo "HOSTNAME=`hostname` DISPLAY=$$DISPLAY" @echo "PS: It's normal that buffermode=0,4,5 aren't nice" @echo -e "\n\ +-----------------------+-------------------+-----------------------+\n\ | drawmode=0 (wireframe) | drawmode=2 (faces) |\n\ +-----------------------+-------------------+-----------------------+\n\ | clearline=0 | clearline=1 | |\n\ +-----------------------+-------------------+-----------------------+\n\ | 0 1 2 3 4 5 | 1 2 3 4 5 | 0 1 2 3 4 5 |\n\ +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+\n\ |\c" @sleep 5 @if [ -f bl ] ; then BL=bl ; else BL=xbl ; fi ; \ XBLOPTIONS="-geometry 512x512+0+0 -linewidth 0 -speedtest" \ export XBLOPTIONS ; \ for J in 0 2 ; \ do K=0 ; \ if [ $$J = 0 ] ; then K="0 1" ; fi ; \ for L in $$K ; \ do for I in 0 1 2 3 4 5 ; \ do if [ $$J != 0 -o $$L != 1 -o $$I != 0 ] ; \ then $$BL -buffer $$I -draw $$J -clearline $$L \ 2>/dev/null | \ ( cut -c1-3 | tr -cs "[0-9] " "[|*]" ) ; \ fi ; \ done ; \ done ; \ done configure:configure.in # It's only for me PATH=/usr/local/bin:$$PATH;export PATH;autoconf echo "At the line where config.status is create" echo "Revert the << and > of the cat <config.status" vi configure clean: -$(RM) *.o *~ *.bak *.ln bl LINT mon.out core config.status config.cache config.log # Makefile:config.status Makefile.in # config.status # # config.status:configure.in # configure # # :.,$ !sed 's/ [^ ]*\/include\/[^ ]*//g' | grep -v ":$" # # DO NOT DELETE bl.o: bl.h bloc.h bl.o: buttons.h define.h draw.h icone.h keyid.h menu.h movingbloc.h bl.o: movingbutton.h opt.h options.h realtime.h score.h transfo.h view.h x.h bloc.o: bloc.h bloc.o: define.h transfo.h view.h buttons.o: bl.h buttons.o: bloc.h buttons.h define.h draw.h keyid.h menu.h movingbloc.h buttons.o: movingbutton.h opt.h realtime.h score.h transfo.h view.h x.h demo.o: bl.h bloc.h demo.o: define.h draw.h keyid.h menu.h movingbloc.h movingbutton.h opt.h demo.o: realtime.h transfo.h view.h x.h draw.o: bloc.h draw.o: define.h draw.h movingbloc.h opt.h transfo.h view.h x.h gameevent.o: bl.h gameevent.o: bloc.h define.h draw.h keyid.h menu.h movingbloc.h movingbutton.h gameevent.o: opt.h realtime.h transfo.h view.h x.h help.o: keyid.h initbloc.o: bloc.h initbloc.o: movingbloc.h transfo.h view.h initbuffer.o: opt.h initbuffer.o: x.h initdisp.o: opt.h initdisp.o: x.h initgc.o: define.h initgc.o: opt.h p0.h p1.h p2.h p3.h p4.h p5.h transp.h x.h initmenu.o: bl.h initmenu.o: bloc.h buttons.h define.h draw.h keyid.h menu.h movingbloc.h initmenu.o: movingbutton.h opt.h realtime.h transfo.h view.h x.h initwin.o: bl.h initwin.o: bloc.h define.h draw.h icone.h keyid.h menu.h movingbloc.h initwin.o: movingbutton.h opt.h realtime.h transfo.h view.h x.h loop.o: bl.h bloc.h loop.o: buttons.h define.h draw.h keyid.h menu.h movingbloc.h movingbutton.h loop.o: opt.h realtime.h score.h transfo.h view.h x.h menu.o: bl.h bloc.h menu.o: buttons.h define.h draw.h keyid.h menu.h movingbloc.h movingbutton.h menu.o: opt.h realtime.h transfo.h view.h x.h movingbloc.o: bloc.h movingbloc.o: define.h movingbloc.h transfo.h view.h movingbutton.o: movingbutton.o: movingbutton.h til0.bm til1.bm til10.bm til11.bm til12.bm movingbutton.o: til13.bm til14.bm til15.bm til16.bm til2.bm til3.bm til4.bm movingbutton.o: til5.bm til6.bm til7.bm til8.bm til9.bm opbloc.o: bloc.h opbloc.o: define.h movingbloc.h transfo.h view.h options.o: options.h realtime.o: bl.h realtime.o: bloc.h define.h draw.h keyid.h menu.h movingbloc.h movingbutton.h realtime.o: opt.h realtime.h transfo.h view.h x.h score.o: bl.h bloc.h score.o: define.h draw.h keyid.h menu.h movingbloc.h movingbutton.h opt.h score.o: realtime.h score.h transfo.h view.h x.h transfo.o: transfo.h zoo.o: bl.h bloc.h zoo.o: define.h draw.h keyid.h menu.h movingbloc.h movingbutton.h opt.h zoo.o: realtime.h transfo.h view.h x.h