1############################################################ 2# 3# $Id : Makefile.in 5.5 1999/06/20 $ 4# 5# xdino Makefile.in for configure (UNIX X11 support) 6############################################################ 7 8# default target 9 10wIDGET = dino 11WIDGET = Dino 12WIDGET2 = $(WIDGET)2d 13WIDGET3 = $(WIDGET)3d 14VER = x$(wIDGET) 15DISTVER = $(VER)-5.5 16 17all : x$(wIDGET) @XMWIDGET@ 18 19# this tells GNU make not to export variables into the environment 20# But other makes do not understand its significance, so it must 21# not be the first target in the file. So it is here, before 22# any variables are created, but after the default target 23.NOEXPORT : 24 25SHELL = /bin/sh 26 27srcdir = @srcdir@ 28top_srcdir = @top_srcdir@ 29VPATH = @srcdir@/ 30 31prefix = @prefix@ 32exec_prefix = @exec_prefix@ 33 34bindir = @bindir@ 35mandir = @mandir@/man6 36xapploaddir = @libdir@/X11/app-defaults 37#xapploaddir = @libdir@/app-defaults 38 39INSTALL = @INSTALL@ 40INSTALL_PROGRAM = @INSTALL_PROGRAM@ 41INSTALL_DATA = @INSTALL_DATA@ 42 43#CC = cc -g 44#CC = acc -g 45#CC = gcc -g -Wall -ansi -pedantic 46#CC = gcc -g -Wall 47#CC = g++ -g -Wall 48CC = @CC@ 49 50LINT = lint 51#LINT = alint 52 53INDENT = indent 54 55MORE = more 56#MORE = less 57 58# It will assume a directory of /usr/games if commented out. 59SCOREFILE = $(srcdir)/$(wIDGET).scores 60DATAFILE = $(srcdir)/$(wIDGET).data 61 62LN_S = @LN_S@ 63RM = rm -f 64RM_S = $(RM) 65ECHO = echo 66 67#BLN_S = set file/enter=[] 68#RM = delete/noconfirm/nolog 69#RM_S = set file/remove/nolog 70#ECHO = write sys$output 71 72DEFINES = \ 73-DSCOREFILE=\"${SCOREFILE}\" -DDATAFILE=\"${DATAFILE}\" 74DEFS = @DEFS@ $(DEFINES) 75# -DSRAND=srand48 -DLRAND=lrand48 -DMAXRAND=2147483648.0 76# -DSRAND=srandom -DLRAND=random -DMAXRAND=2147483648.0 77# -DSRAND=srand -DLRAND=rand -DMAXRAND=32768.0 78XWIDGETINC = @XWIDGETINC@ -I$(top_srcdir) -I. 79XMWIDGETINC = @XMWIDGETINC@ -I$(top_srcdir) -I. 80CFLAGS = @CFLAGS@ 81#CFLAGS = -O 82#CFLAGS = -g 83XWIDGETLDFLAGS = @XWIDGETLDFLAGS@ 84XMWIDGETLDFLAGS = @XMWIDGETLDFLAGS@ 85XLIBS = @XLIBS@ 86XWIDGETLIBS = @XWIDGETLIBS@ 87XMWIDGETLIBS = @XMWIDGETLIBS@ 88 89N= 90C=.c 91#C++ 92#C=.cc 93 94O=.o 95S=$(N) $(N) 96E= 97A= 98 99#VMS 100#O=.obj 101#S=, 102#E=.exe 103#A=;* 104 105# please define 106# C as the C source code extension 107# O as the object extension 108# S as the separator for object code 109# E as the executable extension 110 111#################################################################### 112# List of object files 113 114COREOBJS = $(WIDGET)$(O)$(S)$(WIDGET2)$(O)$(S)$(WIDGET3)$(O)$(S)\ 115$(WIDGET)U$(O)$(S)rngs$(O) 116XWIDGETOBJS = $(COREOBJS)$(S)x$(wIDGET)$(O) 117XMWIDGETOBJS = $(COREOBJS)$(S)xm$(wIDGET)$(O) 118 119#################################################################### 120# List of source files 121# Used for lint, and some dependencies. 122 123CORESRCS = $(WIDGET)$(C) $(WIDGET2)$(C) $(WIDGET3)$(C) \ 124$(WIDGET)U$(C) rngs$(C) 125XWIDGETSRCS = $(CORESRCS) x$(wIDGET)$(C) 126XMWIDGETSRCS = $(CORESRCS) xm$(wIDGET)$(C) 127 128######################################################################### 129 130x$(wIDGET) : $(XWIDGETOBJS) 131 $(CC) -o $@ $(XWIDGETOBJS) $(XWIDGETLDFLAGS) $(XWIDGETLIBS) 132 @ $(ECHO) "$@ BUILD COMPLETE" 133 @ $(ECHO) "" 134 135xm$(wIDGET) : $(XMWIDGETOBJS) 136 $(CC) -o $@ $(XMWIDGETOBJS) $(XMWIDGETLDFLAGS) $(XMWIDGETLIBS) 137 @ $(ECHO) "$@ BUILD COMPLETE" 138 @ $(ECHO) "" 139 140$(WIDGET)$(O) : $(WIDGET)$(C) $(WIDGET)P.h $(WIDGET).h 141$(WIDGET2)$(O) : $(WIDGET2)$(C) $(WIDGET)P.h $(WIDGET).h $(WIDGET2)P.h $(WIDGET2).h 142$(WIDGET3)$(O) : $(WIDGET3)$(C) $(WIDGET)P.h $(WIDGET).h $(WIDGET3)P.h $(WIDGET3).h 143$(WIDGET)U$(O) : $(WIDGET)U$(C) $(WIDGET)P.h $(WIDGET).h 144rngs$(O) : rngs$(C) 145x$(wIDGET)$(O) : x$(wIDGET)$(C) $(WIDGET).h 146xm$(wIDGET)$(O) : xm$(wIDGET)$(C) $(WIDGET).h 147 148################################################################ 149 150install : install_x$(wIDGET) @INSTALL_XMWIDGET@ 151 152install_x$(wIDGET) : x$(wIDGET)$(E) 153 $(srcdir)/mkinstalldirs $(bindir) 154 $(srcdir)/mkinstalldirs $(mandir) 155 $(srcdir)/mkinstalldirs $(xapploaddir) 156 $(INSTALL_PROGRAM) x$(wIDGET)$(E) $(bindir) 157 $(INSTALL_DATA) x$(wIDGET).man $(mandir)/$(wIDGET).6 158 $(INSTALL_DATA) $(WIDGET).ad $(xapploaddir)/$(WIDGET) 159 @ $(ECHO) "$@ COMPLETE" 160 @ $(ECHO) "" 161 162install_xm$(wIDGET) : xm$(wIDGET)$(E) 163 $(srcdir)/mkinstalldirs $(bindir) 164 $(srcdir)/mkinstalldirs $(mandir) 165 $(srcdir)/mkinstalldirs $(xapploaddir) 166 $(INSTALL_PROGRAM) xm$(wIDGET)$(E) $(bindir) 167 $(INSTALL_DATA) x$(wIDGET).man $(mandir)/$(wIDGET).6 168 $(INSTALL_DATA) $(WIDGET).ad $(xapploaddir)/$(WIDGET) 169 @ $(ECHO) "$@ COMPLETE" 170 @ $(ECHO) "" 171 172uninstall : uninstall_x$(wIDGET) uninstall_xm$(wIDGET) 173 174uninstall_x$(wIDGET) : uninstall_x$(wIDGET) uninstall_xm$(wIDGET) 175 $(RM) $(bindir)/x$(wIDGET)$(E)$(A) 176 $(RM) $(mandir)/x$(wIDGET).6 177 $(RM) $(xapploaddir)/$(WIDGET) 178 179uninstall : uninstall_x$(wIDGET) @UNINSTALL_XMWIDGET@ 180 $(RM) $(bindir)/xm$(wIDGET)$(E)$(A) 181 $(RM) $(mandir)/x$(wIDGET).6 182 $(RM) $(xapploaddir)/$(WIDGET) 183 184################################################################ 185# Dependencies 186 187SUFFIXES : $(C) $(O) $(E) 188 189$(C)$(O) : 190 $(CC) -c $(CPPFLAGS) $(DEFS) $(XWIDGETINC) $(CFLAGS) $< 191 192xm$(wIDGET)$(O) : xm$(wIDGET)$(C) 193 $(CC) -c $(CPPFLAGS) $(DEFS) $(XMWIDGETINC) $(CFLAGS) $< 194 195################################################################ 196 197Makefile : Makefile.in config.status 198 $(SHELL) config.status 199config.status : configure 200 $(SHELL) config.status --recheck 201configure : configure.in 202# enable this rule if you want autoconf to be executed automatically when 203# configure.in is changed. This is commented out, since patching might give 204# configure.in a newer timestamp than configure and not everybody has autoconf 205# cd $(srcdir); autoconf 206 207################################################################ 208# Miscellaneous targets 209 210run : 211 if [ -x ./xm$(wIDGET) ]; then \ 212xm${wIDGET} ; \ 213elif [ -x ./x$(wIDGET) ]; then \ 214x${wIDGET} ; \ 215fi 216 217clean : 218 $(RM) *.o core x$(wIDGET)$(E)$(A) xm$(wIDGET)$(E)$(A) *~ *% *.bak \ 219make.log MakeOut 220 221distclean : clean 222 $(RM) Makefile config.status config.cache config.log 223 224clean.all : distclean 225 226tar : distclean 227 cd .. ; tar cvf $(VER).tar \ 228$(VER)/$(WIDGET).h $(VER)/$(WIDGET)P.h \ 229$(VER)/$(WIDGET2).h $(VER)/$(WIDGET2)P.h \ 230$(VER)/$(WIDGET3).h $(VER)/$(WIDGET3)P.h \ 231$(VER)/$(wIDGET).xbm $(VER)/mouse-l.xbm $(VER)/mouse-r.xbm \ 232$(VER)/$(WIDGET)$(C) $(VER)/$(WIDGET)U$(C) \ 233$(VER)/$(WIDGET2)$(C) $(VER)/$(WIDGET3)$(C) \ 234$(VER)/x$(wIDGET)$(C) $(VER)/xm$(wIDGET)$(C) $(VER)/rngs$(C) \ 235$(VER)/README $(VER)/x$(wIDGET).man \ 236$(VER)/$(WIDGET).ad $(VER)/$(wIDGET).scores \ 237$(VER)/configure $(VER)/Makefile.in $(VER)/configure.in \ 238$(VER)/config.guess $(VER)/config.sub $(VER)/install-sh $(VER)/mkinstalldirs \ 239$(VER)/Imakefile $(VER)/make.com 240 241compress : tar 242 cd .. ; compress -f $(VER).tar 243 244dist : tar 245 cd .. ; gzip -f $(VER).tar 246 247gzip : dist 248 249tgz : tar 250 cd .. ; gzip -c $(VER).tar > `echo $(VER) | cut -c1-8`.tgz ; \ 251$(RM) $(VER).tar 252 253man : 254 nroff -man $(srcdir)/x$(wIDGET).man | $(MORE) 255 256read : 257 $(MORE) README 258 259lint : 260 $(LINT) -ax -DLINT $(DEFINES) $(XMWIDGETINC) $(XWIDGETSRCS) xm$(wIDGET)$(C) 261 262indent : 263 $(INDENT) $(WIDGET)*.h $(XWIDGETSRCS) xm$(wIDGET)$(C) 264