1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
#ifndef XCOMM
#define XCOMM /**/#
#endif
XCOMM X-BASED DINO
XCOMM
XCOMM Imakefile
XCOMM
XCOMM ##
XCOMM
XCOMM Copyright (c) 1995 - 97 David Albert Bagley, bagleyd@bigfoot.com
XCOMM
XCOMM All Rights Reserved
XCOMM
XCOMM Permission to use, copy, modify, and distribute this software and
XCOMM its documentation for any purpose and without fee is hereby granted,
XCOMM provided that the above copyright notice appear in all copies and
XCOMM that both that copyright notice and this permission notice appear in
XCOMM supporting documentation, and that the name of the author not be
XCOMM used in advertising or publicity pertaining to distribution of the
XCOMM software without specific, written prior permission.
XCOMM
XCOMM This program is distributed in the hope that it will be "playable",
XCOMM but WITHOUT ANY WARRANTY; without even the implied warranty of
XCOMM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
XCOMM
wIDGET = dino
WIDGET = Dino
WIDGET2 = $(WIDGET)2d
WIDGET3 = $(WIDGET)3d
VER = x$(WIDGET)
DISTVER = $(VER)-3.4.0
N=
C=.c
XCOMM C++
XCOMM C=.cc
O=.o
XCOMM VMS
XCOMM O=.obj
S=$(N) $(N)
XCOMM VMS
XCOMM S=,
E=
XCOMM VMS
XCOMM E=.exe
XCOMM please define
XCOMM C as the C source code extension
XCOMM O as the object extension
XCOMM S as the separator for object code
XCOMM E as the executable extension
XCOMM CC = cc
XCOMM CC = acc
XCOMM CC = gcc -Wall
XCOMM CC = g++ -Wall
XCOMM *** BEGIN XM CONFIG SECTION ***
XCOMM If your system has libXm (Motif), remove the 'XCOMM ' from the next line.
XCOMM #define XmLibrary
#ifdef XmLibrary
XCOMM If its not with your X11 stuff you should set the following
MOTIFHOME = /usr/local
XCOMM MOTIFHOME = /usr/dt
XCOMM Below is a guess of the location of the Motif include directory.
XMINC = -I$(MOTIFHOME)/include
XCOMM If you get an error "Connot find libXm" while linking, set XMLIBPATH
XCOMM to the directory libXpm.* is in. Below is a guess.
XMLIB = -L$(MOTIFHOME)/lib -lXm
XCOMM XMLIB = -lXm
#endif
XCOMM *** END XM CONFIG SECTION ***
XCOMM *** BEGIN RNG CONFIG SECTION ***
XCOMM Uncomment to use your system's Random Number Generator
XCOMM They usually come in 3 types
XCOMM Uncomment to use high-precision (but expensive) RNG
XCOMM SRANDDEF = -DSRAND=srand48
XCOMM LRANDDEF = -DLRAND=lrand48
XCOMM SRANDDEF = -DSRAND=srandom
XCOMM LRANDDEF = -DLRAND=random
XCOMM Least desirable RNG
XCOMM SRANDDEF = -DSRAND=srand
XCOMM LRANDDEF = -DLRAND=rand
XCOMM Normally use the above with (default)
XCOMM MAXRANDDEF = -DMAXRAND=2147483648.0
XCOMM Use the following if using srand/rand and NOT AIXV3
XCOMM MAXRANDDEF = -DMAXRAND=32767.0
RANDDEF = $(SRANDDEF) $(LRANDDEF) $(MAXRANDDEF)
XCOMM *** END RNG CONFIG SECTION ***
XCOMM Set your C compiler if necessary
XCOMM CC = gcc -g -DDEBUG -Wall
XCOMM CC = gcc -O
SCOREFILE = ./$(wIDGET).scores
DATAFILE = ./$(wIDGET).data
DEFINES = -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 \
-DSCOREFILE=\"$(SCOREFILE)\" -DDATAFILE=\"$(DATAFILE)\" \
$(XMINC)
XWIDGETLIBS = $(XTOOLLIB) $(XLIB)
# -lICE -lSM
XMWIDGETLIBS = $(XMLIB) $(XWIDGETLIBS)
# -lICE -lSM
COREOBJS = $(WIDGET)$(O)$(S)$(WIDGET2)$(O)$(S)$(WIDGET3)$(O)$(S)\
$(WIDGET)U$(O)$(S)rngs$(O)
XWIDGETOBJS = $(COREOBJS)$(S)x$(wIDGET)$(O)
XMWIDGETOBJS = $(COREOBJS)$(S)xm$(wIDGET)$(O)
CORESRCS = $(WIDGET)$(C) $(WIDGET2)$(C) $(WIDGET3)$(C) \
$(WIDGET)U$(C) rngs$(C)
XWIDGETSRCS = $(CORESRCS) x$(wIDGET)$(C)
XMWIDGETSRCS = $(CORESRCS) xm$(wIDGET)$(C)
AllTarget(x$(wIDGET)$(E))
NormalProgramTarget(x$(wIDGET)$(E), $(XWIDGETOBJS), $(DEPXLIB), $(XWIDGETLIBS), NullParameter)
#ifdef XmLibrary
AllTarget(xm$(wIDGET)$(E))
NormalProgramTarget(xm$(wIDGET)$(E), $(XMWIDGETOBJS), $(DEPXLIB), $(XMWIDGETLIBS), NullParameter)
#else
clean::
$(RM) xm$(wIDGET)$(E)
#endif
$(WIDGET)$(O) : $(WIDGET)$(C) $(WIDGET)P.h $(WIDGET).h
$(WIDGET2)$(O) : $(WIDGET2)$(C) $(WIDGET)P.h $(WIDGET).h $(WIDGET2)P.h $(WIDGET2).h
$(WIDGET3)$(O) : $(WIDGET2)$(C) $(WIDGET)P.h $(WIDGET).h $(WIDGET3)P.h $(WIDGET3).h
$(WIDGET)U$(O) : $(WIDGET)U$(C) $(WIDGET)P.h $(WIDGET).h
rngs$(O) : rngs$(C)
x$(wIDGET)$(O) : x$(wIDGET)$(C) $(WIDGET).h
xm$(wIDGET)$(O) : xm$(wIDGET)$(C) $(WIDGET).h
distclean:: clean
$(RM) Makefile config.status config.cache config.log
clean.all:: distclean
|