############################################################ # # $Id : Makefile.in 7.3.2 2007/11/06 $ # # xabacus Makefile.in for configure (UNIX X11 support) ############################################################ # default target wIDGET = abacus WIDGET = Abacus VERNUM = 7.3.2 GROUP = xabacus P=x R=$(P) V=$(P) PROG = $(R)$(wIDGET) #VER = $(V)$(wIDGET)-$(VERNUM) VER = $(wIDGET) # this tells GNU make not to export variables into the environment # But other makes do not understand its significance, so it must # not be the first target in the file. So it is here, before # any variables are created, but after the default target .NOEXPORT : SHELL = /bin/sh # Its not a game, so you may not want this. Man page itself is hard coded. MANNUM = 6 #MANNUM = 1 srcdir = . top_srcdir = . #VPATH = ./ prefix = exec_prefix = ${prefix} bindir = ${exec_prefix}/bin mandir = ${datarootdir}/man/man$(MANNUM) xapploaddir = /usr/X11R6/lib/X11/app-defaults #xapploaddir = ${exec_prefix}/lib/X11/app-defaults #xapploaddir = ${exec_prefix}/lib/app-defaults datarootdir = ${prefix}/share datadir = ${datarootdir} readdir = $(datadir)/$(GROUP) INSTALL = /usr/bin/install -c -o root -g wheel INSTALL_PROGRAM = install -s -o root -g wheel -m 555 INSTALL_DATA = install -o root -g wheel -m 444 M = DESTDIR = #CC = cc -g #CC = acc -g #CC = gcc -g -Wall -ansi -pedantic #CC = gcc -g -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-long-long #CC = gcc -g -Wall #CC = g++ -g -Wall #CC = CC -g CC = cc LINT = lint #LINT = alint INDENT = indent MORE = more #MORE = less PRINT = lpr #PRINT = enscript -2r LN_S = ln -s RM = rm -f RM_S = $(RM) ECHO = echo #BLN_S = set file/enter=[] #RM = delete/noconfirm/nolog #RM_S = set file/remove/nolog #ECHO = write sys$output # Assumes a directory of /usr/local/share/$(GROUP) if -DDEMOPATH not set. DEFINES = \ -DSOUNDPATH=\"$(readdir)\" -DSOUNDEXT=\".au\" \ -DBUMPSOUND=\"bump\" -DMOVESOUND=\"move\" \ -DDEMOPATH=\"$(readdir)\" DEFS = -DPACKAGE_NAME=\"xabacus\" -DPACKAGE_TARNAME=\"xabacus\" -DPACKAGE_VERSION=\"7.3.2\" -DPACKAGE_STRING=\"xabacus\ 7.3.2\" -DPACKAGE_BUGREPORT=\"bagleyd@tux.org\" -DHAVE_FCNTL_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -Dconst= -DHAVE_RAND48=1 -DDECLARED_SRAND48=1 -DHAVE_USLEEP=1 -DHAVE_MOTIF=1 -DHAVE_XPM=1 -DUSE_ESOUND=1 -DHAVE_LIBESD=1 -DLEE_ABACUS=1 $(DEFINES) # -DSRAND=srand48 -DLRAND=lrand48 -DMAXRAND=2147483648.0 # -DSRAND=srandom -DLRAND=random -DMAXRAND=2147483648.0 # -DSRAND=srand -DLRAND=rand -DMAXRAND=32768.0 # -DHAVE_USLEEP # -DHAVE_NANOSLEEP XWIDGETINC = -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include -I$(top_srcdir) -I. CFLAGS = -fno-common #CFLAGS = -O #CFLAGS = -g XWIDGETLDFLAGS = XLIBS = XWIDGETLIBS = -L/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/local/lib -lXm -lXt -lX11 -lXpm -L/usr/local/lib -lesd -laudiofile -lm -lm N= C=.c #C++ #C=.cc #C=.cpp O=. S=$(N) $(N) E= A= #VMS #O=.obj #S=, #E=.exe #A=;* # please define # C as the C source code extension # O as the object extension # S as the separator for object code # E as the executable extension HDRS = $(WIDGET)P.h $(WIDGET).h \ xwin.h file.h timer.h rngs.h \ sound.h \ pixmaps/$(wIDGET).xbm pixmaps/$(wIDGET).xpm COREOBJS = $(WIDGET)$(O)$(S)$(WIDGET)M$(O)$(S)$(WIDGET)D$(O)$(S)$(WIDGET)C$(O) OBJS = xwin$(O)$(S)file$(O)$(S)timer$(O)$(S)rngs$(O)$(S)\ sound$(O)$(S)\ $(COREOBJS)$(S)$(P)$(wIDGET)$(O) CORESRCS = $(WIDGET)$(C) $(WIDGET)M$(C) $(WIDGET)D$(C) $(WIDGET)C$(C) SRCS = xwin$(C) file$(C) timer$(C) rngs$(C) \ sound$(C) \ $(CORESRCS) $(P)$(wIDGET)$(C) all : $(PROG) $(WIDGET).ad $(PROG) : $(OBJS) $(CC) -o $@ $(OBJS) $(XWIDGETLDFLAGS) $(XWIDGETLIBS) @ $(ECHO) "$@ BUILD COMPLETE" @ $(ECHO) "" @ $(ECHO) "To install: \"make install\" is safer but" @ $(ECHO) "\"make install-games\" may work better, see INSTALL." $(WIDGET)$(O) : $(WIDGET)$(C) $(HDRS) $(WIDGET)M$(O) : $(WIDGET)M$(C) $(WIDGET)P.h $(WIDGET).h $(WIDGET)D$(O) : $(WIDGET)D$(C) $(WIDGET)P.h $(WIDGET).h file.h $(WIDGET)C$(O) : $(WIDGET)C$(C) $(WIDGET)P.h $(WIDGET).h xwin$(O) : xwin$(C) xwin.h file$(O) : file$(C) file.h timer$(O) : timer$(C) timer.h rngs$(O) : rngs$(C) rngs.h sound$(O) : sound$(C) sound.h file.h $(P)$(wIDGET)$(O) : $(P)$(wIDGET)$(C) $(WIDGET).h xwin.h file.h install : $(PROG)$(E) $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(INSTALL_PROGRAM) $(PROG)$(E) $(DESTDIR)$(bindir)/$(R)$(M)$(wIDGET)$(E) $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) $(INSTALL_DATA) $(PROG).man $(DESTDIR)$(mandir)/$(PROG).$(MANNUM) $(srcdir)/mkinstalldirs $(DESTDIR)$(xapploaddir) $(INSTALL_DATA) $(WIDGET).ad $(DESTDIR)$(xapploaddir)/$(WIDGET) $(srcdir)/mkinstalldirs $(DESTDIR)$(readdir) $(INSTALL_DATA) $(WIDGET).ps $(DESTDIR)$(readdir)/$(WIDGET).ps cd lessons > /dev/null; \ for les in $(WIDGET)*.les; do \ $(INSTALL_DATA) $$les $(DESTDIR)$(readdir)/$$les; \ done; \ cd .. $(INSTALL_DATA) bump.au $(DESTDIR)$(readdir)/bump.au $(INSTALL_DATA) move.au $(DESTDIR)$(readdir)/move.au @ $(ECHO) "$@ COMPLETE" @ $(ECHO) "" @ $(ECHO) "To use $(R)$(M)$(wIDGET) from a menu, you may want to install the" @ $(ECHO) "images. Do a \"make install-png\" for Gnome and KDE, or do a" @ $(ECHO) "\"make install-xpm\" or a \"make install-xpm-home\" for CDE." uninstall : $(RM) $(DESTDIR)$(bindir)/$(R)$(M)$(wIDGET)$(E)$(A) $(RM) $(DESTDIR)$(mandir)/$(PROG).$(MANNUM) $(RM) $(DESTDIR)$(xapploaddir)/$(WIDGET) $(RM) $(DESTDIR)$(readdir)/$(WIDGET).ps for les in $(DESTDIR)$(readdir)/$(WIDGET)*.les; do \ $(RM) $$les; \ done $(RM) $(DESTDIR)$(readdir)/bump.au $(RM) $(DESTDIR)$(readdir)/move.au install-games : $(PROG)$(E) $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) $(INSTALL_DATA) $(PROG).man $(DESTDIR)$(mandir)/$(PROG).$(MANNUM) $(srcdir)/mkinstalldirs $(DESTDIR)$(xapploaddir) $(INSTALL_DATA) $(WIDGET).ad $(DESTDIR)$(xapploaddir)/$(WIDGET) $(srcdir)/mkinstalldirs /usr/games $(INSTALL_PROGRAM) $(PROG)$(E) /usr/$(R)$(M)$(wIDGET)$(E) chmod 2755 /usr/$(R)$(M)$(wIDGET)$(E) $(srcdir)/mkinstalldirs /var/$(GROUP) chmod 775 /var/$(GROUP) chown games:games /usr/$(R)$(M)$(wIDGET)$(E) @ $(ECHO) "$@ COMPLETE" @ $(ECHO) "" @ $(ECHO) "To use $(R)$(M)$(wIDGET) from a menu, you may want to install the " @ $(ECHO) "images. Do a \"make install-png\" for Gnome and KDE, or do a" @ $(ECHO) "\"make install-xpm\" or a \"make install-xpm-home\" for CDE." uninstall-games : $(RM) $(DESTDIR)$(mandir)/$(PROG).$(MANNUM) $(RM) $(DESTDIR)$(xapploaddir)/$(WIDGET) $(RM) /usr/$(R)$(M)$(wIDGET)$(E) # Gnome and KDE install-png : $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/pixmaps/png/hicolor/16x16/apps $(INSTALL_DATA) pixmaps/mini.$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/16x16/apps/$(wIDGET).png $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/pixmaps/png/hicolor/22x22/apps $(INSTALL_DATA) pixmaps/small.$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/22x22/apps/$(wIDGET).png $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/pixmaps/png/hicolor/32x32/apps $(INSTALL_DATA) pixmaps/normal.$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/32x32/apps/$(wIDGET).png $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/pixmaps/png/hicolor/48x48/apps $(INSTALL_DATA) pixmaps/big.$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/48x48/apps/$(wIDGET).png $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps $(LN_S) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/16x16/apps/$(wIDGET).png $(DESTDIR) $(datadir)/pixmaps/png/hicolor/all/apps/mini.$(wIDGET).png $(LN_S) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/22x22/apps/$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/small.$(wIDGET).png $(LN_S) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/32x32/apps/$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/normal.$(wIDGET).png $(LN_S) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/48x48/apps/$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/big.$(wIDGET).png uninstall-png : $(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/mini.$(wIDGET).png $(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/small.$(wIDGET).png $(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/normal.$(wIDGET).png $(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/big.$(wIDGET).png $(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/16x16/apps/$(wIDGET).png $(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/22x22/apps/$(wIDGET).png $(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/32x32/apps/$(wIDGET).png $(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/48x48/apps/$(wIDGET).png #CDE install-xpm : $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/dt/pixmaps $(INSTALL_DATA) pixmaps/$(wIDGET).t.xpm $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).t.pm $(INSTALL_DATA) pixmaps/$(wIDGET).s.xpm $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).s.pm $(INSTALL_DATA) pixmaps/$(wIDGET).m.xpm $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).m.pm $(INSTALL_DATA) pixmaps/$(wIDGET).l.xpm $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).l.pm uninstall-xpm : $(RM) $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).t.pm $(RM) $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).s.pm $(RM) $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).m.pm $(RM) $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).l.pm #CDE HOME directory install-xpm-home : $(srcdir)/mkinstalldirs $(HOME)/.dt/pixmaps $(INSTALL_DATA) pixmaps/$(wIDGET).t.xpm $(HOME)/.dt/pixmaps/$(wIDGET).t.pm $(INSTALL_DATA) pixmaps/$(wIDGET).s.xpm $(HOME)/.dt/pixmaps/$(wIDGET).s.pm $(INSTALL_DATA) pixmaps/$(wIDGET).m.xpm $(HOME)/.dt/pixmaps/$(wIDGET).m.pm $(INSTALL_DATA) pixmaps/$(wIDGET).l.xpm $(HOME)/.dt/pixmaps/$(wIDGET).l.pm uninstall-xpm-home : $(RM) $(HOME)/.dt/pixmaps/$(wIDGET).t.pm $(RM) $(HOME)/.dt/pixmaps/$(wIDGET).s.pm $(RM) $(HOME)/.dt/pixmaps/$(wIDGET).m.pm $(RM) $(HOME)/.dt/pixmaps/$(wIDGET).l.pm SUFFIXES : $(C) $(O) $(E) .ad.in .ad $(C)$(O) : $(CC) -c $(CPPFLAGS) $(DEFS) $(XWIDGETINC) $(CFLAGS) $< # Certain makes break on this # ADINS = $(ADS:.ad.in=.ad) # # $(ADS) : %.ad.in:%.ad # sed s:@READPATH@:$(readdir):g $< > $@ $(WIDGET).ad : $(WIDGET).ad.in sed s:@READPATH@:$(readdir):g $(WIDGET).ad.in > $@ Makefile : Makefile.in config.status $(SHELL) config.status config.status : configure $(SHELL) config.status --recheck configure : configure.in # enable this rule if you want autoconf to be executed automatically when # configure.in is changed. This is commented out, since patching might give # configure.in a newer timestamp than configure and not everybody has autoconf # cd $(srcdir); autoconf run : ./$(PROG) run.scores : run.version : ./$(PROG) -version gdb : gdb ./$(PROG) dbx : dbx ./$(PROG) clean : $(RM) *.o *.exe* core *~ *% *.bak make.log MakeOut Makefile.dep \ $(PROG) $(PROG).errs $(PROG).1.html $(PROG)._man cd win32 ; make -f Makefile clean distclean : clean $(RM) config.cache config.log *.ad $(RM)r autom4te.cache cd win32 ; make -f Makefile distclean clean.all : distclean $(RM) Makefile config.status PACKAGE=$(VER)/$(WIDGET).h $(VER)/$(WIDGET)P.h \ $(VER)/xwin.h $(VER)/file.h $(VER)/timer.h $(VER)/rngs.h \ $(VER)/sound.h \ $(VER)/pixmaps/mouse-l.xbm $(VER)/pixmaps/mouse-r.xbm \ $(VER)/pixmaps/$(wIDGET).xbm $(VER)/pixmaps/$(wIDGET).xpm \ $(VER)/pixmaps/$(wIDGET).t.xpm $(VER)/pixmaps/$(wIDGET).s.xpm \ $(VER)/pixmaps/$(wIDGET).m.xpm $(VER)/pixmaps/$(wIDGET).l.xpm \ $(VER)/pixmaps/$(wIDGET).p.xpm \ $(VER)/pixmaps/mini.$(wIDGET).png $(VER)/pixmaps/small.$(wIDGET).png \ $(VER)/pixmaps/normal.$(wIDGET).png $(VER)/pixmaps/big.$(wIDGET).png \ $(VER)/bump.au $(VER)/move.au $(VER)/play.sh \ $(VER)/$(WIDGET)$(C) $(VER)/$(WIDGET)M$(C) \ $(VER)/$(WIDGET)D$(C) $(VER)/$(WIDGET)C$(C) $(VER)/$(P)$(wIDGET)$(C) \ $(VER)/xwin$(C) $(VER)/file$(C) $(VER)/timer$(C) $(VER)/rngs$(C) \ $(VER)/sound$(C) \ $(VER)/Imakefile $(VER)/$(PROG).man $(VER)/$(PROG).html \ $(VER)/$(WIDGET).ad.in $(VER)/$(WIDGET).ps $(VER)/lessons/* \ $(VER)/configure $(VER)/Makefile.in $(VER)/configure.in \ $(VER)/config.guess $(VER)/config.sub $(VER)/install-sh $(VER)/mkinstalldirs \ $(VER)/AUTHORS $(VER)/ChangeLog $(VER)/COPYING $(VER)/NEWS \ $(VER)/INSTALL $(VER)/README $(VER)/VERSION $(VER)/TODO \ $(VER)/vms/README.vms $(VER)/vms/$(PROG).hlp \ $(VER)/vms/make.com $(VER)/vms/mmov.com \ $(VER)/vms/vms_amd.c $(VER)/vms/vms_amd.h $(VER)/vms/vms_mmov.c \ $(VER)/win32/Makefile $(VER)/win32/w$(wIDGET).rc \ $(VER)/win32/bump.wav $(VER)/win32/move.wav \ $(VER)/win32/w$(wIDGET).ini $(VER)/win32/$(wIDGET).ico zip : distclean cd .. ; zip $(VER) $(PACKAGE) pkzip : distclean cd .. ; pkzip $(VER) $(PACKAGE) tar : distclean cd .. ; tar cvf $(VER).tar $(PACKAGE) compress : tar cd .. ; compress -f $(VER).tar gzip : tar cd .. ; gzip -f $(VER).tar bzip2 : tar cd .. ; bzip2 -f $(VER).tar dist : bzip2 tgz : tar cd .. ; gzip -c $(VER).tar > `echo $(VER) | cut -c1-8`.tgz ; \ $(RM) $(VER).tar tbz : tar cd .. ; bzip2 -c $(VER).tar > `echo $(VER) | cut -c1-8`.tbz ; \ $(RM) $(VER).tar dist.man : $(PROG).html vms/$(PROG).hlp # man2html 3.0.1, changed psgz 1666 and txsz 1552 $(PROG).html : $(PROG).man nroff -c -man < $(PROG).man | man2html -title $(PROG) > $(PROG).html # found man2hlp.sh in lynx source vms/$(PROG).hlp : $(PROG).man man2hlp.sh $(PROG).man > vms/$(PROG).hlp html : $(PROG).html hlp : vms/$(PROG).hlp man : nroff -c -man $(PROG).man | $(MORE) print: $(PRINT) $(HDRS) $(SRCS) read : $(MORE) README lint : $(LINT) -ax -DLINT $(DEFS) $(XWIDGETINC) $(SRCS) $(XWIDGETLIBS) indent : $(INDENT) $(HDRS) $(SRCS) PNGS=\ pixmaps/big.$(wIDGET).png\ pixmaps/normal.$(wIDGET).png\ pixmaps/small.$(wIDGET).png\ pixmaps/mini.$(wIDGET).png pixmaps/big.$(wIDGET).png : pixmaps/$(wIDGET).l.xpm if grep None $< > /dev/null; then\ sed -e "s/None/White/" $< | xpmtoppm |\ pnmtopng -transparent 1,1,1 > $@;\ else\ xpmtoppm $< | pnmtopng > $@;\ fi pixmaps/normal.$(wIDGET).png : pixmaps/$(wIDGET).m.xpm if grep None $< > /dev/null; then\ sed -e "s/None/White/" $< | xpmtoppm |\ pnmtopng -transparent 1,1,1 > $@;\ else\ xpmtoppm $< | pnmtopng > $@;\ fi pixmaps/small.$(wIDGET).png : pixmaps/$(wIDGET).p.xpm if grep None $< > /dev/null; then\ sed -e "s/None/White/" $< | xpmtoppm |\ pnmtopng -transparent 1,1,1 > $@;\ else\ xpmtoppm $< | pnmtopng > $@;\ fi pixmaps/mini.$(wIDGET).png : pixmaps/$(wIDGET).t.xpm if grep None $< > /dev/null; then\ sed -e "s/None/White/" $< | xpmtoppm |\ pnmtopng -transparent 1,1,1 > $@;\ else\ xpmtoppm $< | pnmtopng > $@;\ fi pixmap : $(PNGS)