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