1### There is a special SOLARIS-switch (added by Blair Zajac) 2 3### directory for writing temporary data and pixmap files 4 5DATA_DIRECTORY = '"/tmp"' 6 7### compiler section 8### for debugging, there might be the additional flags -DDEBUG and -DSTATISTICS 9### the -O2 option doesn't work correct on gcc-2.7.0 10#CXX = gcc -Wall -fstrength-reduce -fpcc-struct-return 11#CXXFLAGS = -O1 12CXX = CC 13CXXFLAGS = -O 14 15### parameter type of select-parameters (have to be casted on HP-UX) 16 17#FDS_TYPE = '' 18FDS_TYPE = '(int*)' 19 20### Directories for include files of X11 and libraries 21 22# X_INCLUDE = /usr/X11R6/include 23X_INCLUDE = /usr/include/X11R5 24 25# XLIB_DIR = /usr/X11R6/lib 26XLIB_DIR = /usr/lib/X11R5 27 28################################################################### 29 30LDFLAGS = -L$(XLIB_DIR) 31 32.SUFFIXES: .C .o 33 34.C.o: 35 $(CXX) -I$(X_INCLUDE) -DDATA_DIRECTORY=$(DATA_DIRECTORY) -DFDS_TYPE=$(FDS_TYPE) $(CXXFLAGS) -c $< 36 37LD = $(CXX) 38 39LIBS = -lX11 -lm 40 41OBJS = arcs.o \ 42 ball.o \ 43 billard.o \ 44 cannon.o \ 45 carrom.o \ 46 curling.o \ 47 dynobj.o \ 48 game.o \ 49 global.o \ 50 goal.o \ 51 graph.o \ 52 hockey.o \ 53 keeper.o \ 54 logfile.o \ 55 main.o \ 56 mover.o \ 57 object.o \ 58 objtab.o \ 59 pball.o \ 60 pcon.o \ 61 pocket.o \ 62 pool.o \ 63 pool8.o \ 64 real.o \ 65 rgb.o \ 66 snooker.o \ 67 vec2.o \ 68 vec3.o \ 69 vector.o \ 70 wall.o \ 71 xbench.o \ 72 xsound.o 73 74PROGRAM = flying 75 76all: $(PROGRAM) 77 78$(PROGRAM): $(OBJS) 79 $(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM) 80 81clean: 82 -rm -f core *.o $(PROGRAM) 83 -rm -f fly.dta/*.* 84 85### dependencies ### 86 87arcs.o: global.h \ 88 arcs.h object.h real.h \ 89 vec2.h vector.h ball.h dynobj.h objtab.h game.h keeper.h 90ball.o: global.h \ 91 ball.h arcs.h object.h \ 92 real.h vec2.h vector.h dynobj.h objtab.h game.h keeper.h mover.h \ 93 graph.h xgraph.h \ 94 xsound.h \ 95 xmover.h pball.h xpball.h 96billard.o: global.h \ 97 billard.h real.h game.h vec2.h \ 98 vector.h keeper.h wall.h object.h graph.h \ 99 xgraph.h \ 100 xsound.h \ 101 mover.h xmover.h 102cannon.o: global.h \ 103 cannon.h real.h billard.h game.h vec2.h \ 104 vector.h keeper.h ball.h arcs.h object.h dynobj.h \ 105 objtab.h wall.h graph.h xgraph.h \ 106 xsound.h \ 107 mover.h xmover.h 108carrom.o: global.h \ 109 carrom.h real.h vec2.h \ 110 vector.h game.h keeper.h wall.h object.h graph.h xgraph.h \ 111 xsound.h \ 112 mover.h xmover.h \ 113 arcs.h pocket.h ball.h dynobj.h objtab.h 114curling.o: global.h \ 115 curling.h vec2.h real.h \ 116 vector.h game.h keeper.h arcs.h object.h ball.h dynobj.h objtab.h \ 117 goal.h wall.h graph.h xgraph.h \ 118 xsound.h \ 119 mover.h xmover.h 120dynobj.o: global.h \ 121 dynobj.h real.h objtab.h object.h ball.h arcs.h \ 122 vec2.h vector.h 123game.o: global.h \ 124 game.h vec2.h real.h \ 125 vector.h keeper.h wall.h object.h ball.h arcs.h dynobj.h objtab.h \ 126 graph.h xgraph.h \ 127 xsound.h 128global.o: global.h \ 129 real.h cannon.h billard.h \ 130 game.h vec2.h vector.h keeper.h carrom.h goal.h \ 131 wall.h object.h hockey.h curling.h pball.h xpball.h pool.h \ 132 pool8.h snooker.h pocket.h ball.h arcs.h dynobj.h objtab.h 133goal.o: global.h \ 134 goal.h wall.h object.h real.h vec2.h \ 135 vector.h ball.h arcs.h dynobj.h objtab.h game.h \ 136 keeper.h 137graph.o: global.h \ 138 object.h real.h graph.h vec2.h \ 139 vector.h xgraph.h \ 140 xsound.h \ 141 pball.h xpball.h xgraph.C pointer.h stipple.h game.h \ 142 keeper.h \ 143 rgb.h 144hockey.o: global.h \ 145 hockey.h vec2.h real.h \ 146 vector.h game.h keeper.h arcs.h object.h ball.h dynobj.h objtab.h \ 147 goal.h wall.h graph.h xgraph.h \ 148 xsound.h \ 149 mover.h xmover.h 150keeper.o: global.h \ 151 ball.h arcs.h object.h real.h vec2.h \ 152 vector.h dynobj.h objtab.h wall.h keeper.h game.h \ 153 graph.h xgraph.h \ 154 xsound.h 155logfile.o: \ 156 global.h \ 157 logfile.h 158main.o: global.h \ 159 dynobj.h real.h objtab.h \ 160 object.h graph.h vec2.h vector.h xgraph.h \ 161 xsound.h \ 162 mover.h xmover.h \ 163 game.h keeper.h snooker.h pool.h billard.h cannon.h \ 164 pool8.h carrom.h hockey.h curling.h pball.h xpball.h 165mover.o: global.h \ 166 mover.h real.h graph.h object.h vec2.h \ 167 vector.h xgraph.h \ 168 xsound.h \ 169 xmover.h xmover.C vec3.h 170object.o: global.h \ 171 object.h real.h ball.h arcs.h vec2.h \ 172 vector.h dynobj.h objtab.h graph.h xgraph.h \ 173 xsound.h 174objtab.o: global.h \ 175 objtab.h real.h object.h 176pball.o: global.h \ 177 pball.h vec2.h real.h \ 178 vector.h xpball.h ball.h arcs.h object.h dynobj.h objtab.h \ 179 graph.h xgraph.h \ 180 xsound.h \ 181 game.h keeper.h xpball.C cursor.h 182pcon.o: global.h \ 183 pcon.h real.h pocket.h ball.h arcs.h object.h \ 184 vec2.h vector.h dynobj.h objtab.h keeper.h wall.h \ 185 graph.h xgraph.h \ 186 xsound.h 187pocket.o: global.h \ 188 pocket.h ball.h arcs.h object.h real.h vec2.h \ 189 vector.h dynobj.h objtab.h keeper.h game.h 190pool.o: global.h \ 191 pool.h real.h billard.h game.h vec2.h \ 192 vector.h keeper.h pcon.h pocket.h ball.h arcs.h \ 193 object.h dynobj.h objtab.h wall.h graph.h xgraph.h \ 194 xsound.h \ 195 mover.h xmover.h 196pool8.o: global.h \ 197 pool8.h pool.h real.h billard.h game.h vec2.h \ 198 vector.h keeper.h graph.h object.h xgraph.h \ 199 xsound.h \ 200 mover.h xmover.h \ 201 ball.h arcs.h dynobj.h objtab.h wall.h 202real.o: global.h \ 203 real.h 204rgb.o: rgb.h 205snooker.o: global.h \ 206 snooker.h vec2.h real.h \ 207 vector.h pool.h billard.h game.h keeper.h pocket.h ball.h arcs.h \ 208 object.h dynobj.h objtab.h graph.h xgraph.h \ 209 xsound.h \ 210 mover.h xmover.h 211vec2.o: global.h \ 212 vec2.h real.h vector.h 213vec3.o: global.h \ 214 vec3.h real.h vector.h 215vector.o: global.h \ 216 vector.h real.h \ 217 vec2.h vec3.h 218wall.o: global.h \ 219 wall.h object.h real.h vec2.h \ 220 vector.h ball.h arcs.h dynobj.h objtab.h game.h \ 221 keeper.h 222