2 # NetHack 3.6 Makefile.src $NHDT-Date: 1447313972 2015/11/12 07:39:32 $ $NHDT-Branch: master $:$NHDT-Revision: 1.45 $
7 # newer makes predefine $(MAKE) to 'make' and do smarter processing of
8 # recursive make calls if $(MAKE) is used
9 # these makes allow $(MAKE) to be overridden by the environment if someone
10 # wants to (or has to) use something other than the standard make, so we do
11 # not want to unconditionally set $(MAKE) here
13 # unfortunately, some older makes do not predefine $(MAKE); if you have one of
14 # these, uncomment the following line
15 # (you will know that you have one if you get complaints about being unable
19 # This makefile replaces the previous Makefile.unix, Makefile.xenix,
20 # Makefile.3B2, Makefile.att, and Makefile.tos.
21 # Set SYSTEM to one of:
22 # 'Sysunix' -- generic UNIX
23 # 'Sys3B2' -- AT&T 3B2, 3B5, etc.
24 # 'Sysatt' -- AT&T UNIXPC, 7300, 3B1
25 # 'SysV-AT' -- Microport 286 UNIX (put -DDUMB in CFLAGS)
31 # Make sure that your bourne shell is specified here, as you have to spawn
32 # some of the commands (eg. depend) in bourne shell for them to work.
34 # For Systos users compiling on the ST, you'll either need a bourne shell
35 # clone or you'll need to do make depend, etc. by hand. In either case,
36 # the line below probably needs changing
39 # SHELL=E:/GEMINI2/MUPFEL.TTP
41 # Usually, the C compiler driver is used for linking:
44 # Pick the SYSSRC and SYSOBJ lines corresponding to your desired operating
48 SYSSRC = ../sys/share/ioctl.c ../sys/share/unixtty.c ../sys/unix/unixmain.c \
49 ../sys/unix/unixunix.c ../sys/unix/unixres.c
50 SYSOBJ = ioctl.o unixmain.o unixtty.o unixunix.o unixres.o
53 # SYSSRC = ../sys/atari/tos.c ../sys/share/pcmain.c ../sys/share/pcsys.c \
54 # ../sys/share/pctty.c ../sys/share/pcunix.c
55 # SYSOBJ = tos.o pcmain.o pcsys.o pctty.o pcunix.o
58 #SYSSRC = ../sys/be/bemain.c ../sys/share/unixtty.c ../sys/share/ioctl.c
59 #SYSOBJ = bemain.o unixtty.o ioctl.o
61 JSRC = ../japanese/jconj.c ../japanese/jlib.c
64 # if you are using gcc as your compiler:
65 # uncomment the CC definition below if it's not in your environment
66 # if you get setcgtty() warnings during execution, you are feeding gcc
67 # a non-ANSI <sys/ioctl.h> -- either run fixincludes on it or use
68 # -traditional in CFLAGS
71 # For Bull DPX/2 systems at B.O.S. 2.0 or higher use the following:
73 # CC = gcc -ansi -D_BULL_SOURCE -D_XOPEN_SOURCE -D_POSIX_SOURCE
75 # If you are using GCC 2.2.2 or higher on a DPX/2, just use:
79 # For HP/UX 10.20 with GCC:
80 # CC = gcc -D_POSIX_SOURCE
82 # For cross-compiling, eg. with gcc on Linux (see also CXX further down):
86 # if you're debugging and want gcc to check as much as possible, use:
87 # CC = gcc -W -Wimplicit -Wreturn-type -Wunused -Wformat -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -DGCC_WARN
89 # flags may have to be changed as required
90 # flags for 286 Xenix:
91 # CFLAGS = -Ml2t16 -O -LARGE -I../include
92 # LFLAGS = -Ml -F 4000 -SEG 512
94 # flags for 286 Microport SysV-AT
95 # CFLAGS = -DDUMB -Ml -I../include
98 # flags for Atari gcc (3.2.1)
99 # CFLAGS = -O -I../include
101 # flags for Atari gcc (3.3)
102 # CFLAGS = -mshort -O2 -fomit-frame-pointer -I../include
103 # LFLAGS = -mshort -s
105 # flags for AIX 3.1 cc on IBM RS/6000 to define
106 # a suitable subset of standard libraries
107 # (note that there is more info regarding the "-qchars=signed"
108 # switch in file Install.unx note 8)
109 # CFLAGS = -D_NO_PROTO -D_XOPEN_SOURCE -O -I../include -qchars=signed
111 # Some of our subroutines are complex enough that this is required for full
112 # optimization under AIX 3.2 (I don't know about 3.1).
114 # CFLAGS = -D_NO_PROTO -D_XOPEN_SOURCE -D_ALL_SOURCE -O -I../include -qchars=signed -qmaxmem=5000
116 # flags for A/UX 2.01 using native cc or c89
117 # gcc predefines AUX so that's not needed there
118 # Remember to use -lcurses for WINLIB below !
119 # CFLAGS = -ZS -D_POSIX_SOURCE -O -I../include -DAUX
121 # flags for IRIX 4.0.x using native cc
122 # The include files are __STDC__, but have bugs involving const
123 # CFLAGS = -O -I../include -D__STDC__ -Dconst= -woff 100,293
126 # flags for BSD/OS 2.0
127 # CFLAGS = -O -I../include -I/usr/X11/include
128 # LFLAGS = -L/usr/X11/lib
132 # CFLAGS = -O2 -fomit-frame-pointer -I../include
133 # LFLAGS = -L/usr/X11R6/lib
134 # OR compile backwards compatible a.out format
135 # CFLAGS = -O2 -b i486-linuxaout -fomit-frame-pointer -I../include
136 # LFLAGS = -b i486-linuxaout -L/usr/X11R6/lib
141 #CFLAGS = -r -I../include
143 #LFLAGS = -map nethack.xMAP
145 #CFLAGS = -O -I../include
147 #LFLAGS = -Xlinker -soname=_APP_
149 # Only used for the Gnome interface.
150 # When including the Gnome interface, you need to include gnome specific
151 # directories. The ones given below is the usual spot for linux systems.
152 # The paths are for glibconfig.h and gnomesupport.h respectively.
154 GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs/include -I../win/gnome
156 # flags for debugging:
157 # CFLAGS = -g -I../include
159 #CFLAGS = -O -I../include
162 # The Qt and Be window systems are written in C++, while the rest of
163 # NetHack is standard C. If using Qt, uncomment the LINK line here to get
164 # the C++ libraries linked in.
165 CXXFLAGS = $(CFLAGS) -I. -I$(QTDIR)/include
168 # For cross-compiling, eg. with gcc on Linux (see also CC further up):
172 # file for regular expression matching
173 REGEXOBJ = posixregex.o
174 #REGEXOBJ = pmatchregex.o
175 #REGEXOBJ = cppregex.o
177 # Set the WINSRC, WINOBJ, and WINLIB lines to correspond to your desired
178 # combination of windowing systems. Also set windowing systems in config.h.
179 # Note that if you are including multiple tiled window systems, you don't
180 # want two copies of tile.o, so comment out all but the first.
182 # files for a straight tty port using no native windowing system
183 WINTTYSRC = ../win/tty/getline.c ../win/tty/termcap.c ../win/tty/topl.c \
185 WINTTYOBJ = getline.o termcap.o topl.o wintty.o
187 # files for an X11 port
188 # (tile.c is a generated source file)
189 WINX11SRC = ../win/X11/Window.c ../win/X11/dialogs.c ../win/X11/winX.c \
190 ../win/X11/winmap.c ../win/X11/winmenu.c ../win/X11/winmesg.c \
191 ../win/X11/winmisc.c ../win/X11/winstat.c ../win/X11/wintext.c \
192 ../win/X11/winval.c tile.c
193 WINX11OBJ = Window.o dialogs.o winX.o winmap.o winmenu.o winmesg.o \
194 winmisc.o winstat.o wintext.o winval.o tile.o
196 # Files for a Qt port
198 WINQTSRC = ../win/Qt/qt_win.cpp ../win/Qt/qt_clust.cpp ../win/Qt/qttableview.cpp
199 WINQTOBJ = qt_win.o qt_clust.o qttableview.o tile.o
201 # Files for a Gnome port
203 WINGNOMESRC = ../win/gnome/gnaskstr.c ../win/gnome/gnbind.c \
204 ../win/gnome/gnglyph.c ../win/gnome/gnmain.c ../win/gnome/gnmap.c \
205 ../win/gnome/gnmenu.c ../win/gnome/gnmesg.c ../win/gnome/gnopts.c \
206 ../win/gnome/gnplayer.c ../win/gnome/gnsignal.c \
207 ../win/gnome/gnstatus.c ../win/gnome/gntext.c ../win/gnome/gnyesno.c \
208 ../win/gnome/gnworn.c
209 WINGNOMEOBJ = gnaskstr.o gnbind.o gnglyph.o gnmain.o gnmap.o gnmenu.o \
210 gnmesg.o gnopts.o gnplayer.o gnsignal.o gnstatus.o gntext.o \
211 gnyesno.o gnworn.o tile.o
213 # Files for a Gem port
214 WINGEMSRC = ../win/gem/wingem.c ../win/gem/wingem1.c ../win/gem/load_img.c \
215 ../win/gem/gr_rect.c tile.c
216 WINGEMOBJ = wingem.o wingem1.o load_img.o gr_rect.o tile.o
218 # Files for a BeOS InterfaceKit port -- not ready for prime time
221 #WINBESRC = ../win/BeOS/winbe.cpp ../win/BeOS/NHWindow.cpp \
222 # ../win/BeOS/NHMenuWindow.cpp ../win/BeOS/NHMapWindow.cpp tile.c
223 #WINBEOBJ = winbe.o NHWindow.o NHMenuWindow.o NHMapWindow.o tile.o
227 #WINSRC = $(WINTTYSRC)
228 #WINOBJ = $(WINTTYOBJ)
230 # on some systems the termcap library is in -ltermcap or -lcurses
231 # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead
232 # Sysatt uses shared library in lieu of this option
233 # Systos needs -lcurses16 if you use -mshort
234 # AIX 3.1 on RS/6000 likes -lcurses if TERMINFO defined in unixconf.h
235 # and -ltermcap otherwise
236 # Linux uses -lncurses (newer) or -ltermcap (older)
239 # libraries for tty ports
240 # WINTTYLIB = -ltermcap
241 # WINTTYLIB = -lcurses
242 # WINTTYLIB = -lcurses16
243 # WINTTYLIB = -lncurses
244 #WINTTYLIB = -ltermlib
247 # If USE_XPM is defined in config.h, you will also need -lXpm here.
248 WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
249 # WINX11LIB = -lXaw -lXmu -lXt -lX11
250 # WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm
251 # WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0
254 WINQTLIB = -L$(QTDIR)/lib -lqt
256 # libraries for KDE (with Qt)
257 WINKDELIB = -lkdecore -lkdeui -lXext
259 # libraries for Gnome
260 WINGNOMELIB = -lgnomeui -lgnome -lart_lgpl -lgtk -lgdk -lpopt
262 # libraries for Gem port
263 WINGEMLIB = -le_gem -lgem
268 #WINLIB = $(WINTTYLIB)
270 # any other strange libraries your system needs (for Sysunix only -- the more
271 # specialized targets should already be right)
273 # on HP-UX 8.x, the malloc(3x) routines in libmalloc.a seem to align things
274 # better than the malloc(3) ones in libc.a
277 # DPX/2's also use the malloc(3x) routines. In addition, if you are building
278 # for X11, you must include libinet.a.
279 # LIBS = -lmalloc -linet
281 # Linux NetHack uses some bsd style ioctl functions, thus it is necessary to
282 # use the bsd libs. (Only if still compiling as BSD in unixconf.h; recent
283 # versions compile fine using SYSV without this.)
286 # for CYGWIN32 aka cygwin 1.1.1
289 # Solaris 2.x seems to work with the following
290 # LIBS = -lsocket -lnsl
292 # IRIX 4.0.x needs -lsun if NIS (YP) is being used for passwd file lookup
295 # If ZLIB_COMP is defined in config.h this is necessary to link with zlib.
305 # if you defined RANDOM in unixconf.h/tosconf.h since your system did not come
306 # with a reasonable random number generator
311 # used by `make depend' to reconstruct this Makefile; you shouldn't need this
314 # ----------------------------------------
316 # Nothing below this line should have to be changed.
318 # Other things that have to be reconfigured are in config.h,
319 # {unixconf.h, pcconf.h, tosconf.h}, and possibly system.h
321 MAKEDEFS = ../util/makedefs
323 # timestamp files to reduce `make' overhead and shorten .o dependency lists
324 CONFIG_H = ../src/config.h-t
325 HACK_H = ../src/hack.h-t
327 # all .c that are part of the main NetHack program and are not operating- or
328 # windowing-system specific
329 HACKCSRC = allmain.c alloc.c apply.c artifact.c attrib.c ball.c bones.c \
330 botl.c cmd.c dbridge.c decl.c detect.c dig.c display.c dlb.c do.c \
331 do_name.c do_wear.c dog.c dogmove.c dokick.c dothrow.c drawing.c \
332 dungeon.c eat.c end.c engrave.c exper.c explode.c extralev.c \
333 files.c fountain.c hack.c hacklib.c invent.c light.c lock.c \
334 mail.c makemon.c mapglyph.c mcastu.c mhitm.c mhitu.c minion.c \
336 mkmaze.c mkobj.c mkroom.c mon.c mondata.c monmove.c monstj.c \
337 mplayer.c mthrowu.c muse.c music.c o_init.c objectsj.c objnam.c \
338 options.c pager.c pickup.c pline.c polyself.c potion.c pray.c \
339 priest.c quest.c questpgr.c read.c rect.c region.c restore.c rip.c \
340 rnd.c role.c rumors.c save.c shk.c shknam.c sit.c sounds.c sp_lev.c \
341 spell.c steal.c steed.c sys.c teleport.c timeout.c topten.c track.c \
343 u_init.c uhitm.c vault.c version.c vision.c weapon.c were.c wield.c \
344 windows.c wizard.c worm.c worn.c write.c zap.c
346 # all operating-system-dependent .c (for dependencies and such)
347 SYSCSRC = ../sys/atari/tos.c ../sys/share/pcmain.c ../sys/share/pcsys.c \
348 ../sys/share/pctty.c ../sys/share/pcunix.c \
349 ../sys/share/pmatchregex.c ../sys/share/posixregex.c \
350 ../sys/share/random.c \
351 ../sys/share/ioctl.c ../sys/share/unixtty.c ../sys/unix/unixmain.c \
352 ../sys/unix/unixunix.c ../sys/unix/unixres.c ../sys/be/bemain.c
354 # generated source files (tile.c is handled separately via WINxxxSRC)
355 GENCSRC = monstr.c vis_tab.c #tile.c
357 # all windowing-system-dependent .c (for dependencies and such)
358 WINCSRC = $(WINTTYSRC) $(WINX11SRC) $(WINGNOMESRC) $(WINGEMSRC)
359 # all windowing-system-dependent .cpp (for dependencies and such)
360 WINCXXSRC = $(WINQTSRC) $(WINBESRC)
362 # Files for window system chaining. Requires SYSCF; include via HINTSRC/HINTOBJ
363 CHAINSRC=../win/chain/wc_chainin.c ../win/chain/wc_chainout.c \
364 ../win/chain/wc_trace.c
365 CHAINOBJ=wc_chainin.o wc_chainout.o wc_trace.o
367 # .c files for this version (for date.h)
368 VERSOURCES = $(HACKCSRC) $(SYSSRC) $(JSRC) $(WINSRC) $(CHAINSRC) $(GENCSRC)
370 # .c files for all versions using this Makefile (for lint and tags)
371 CSOURCES = $(HACKCSRC) $(SYSCSRC) $(JSRC) $(WINCSRC) $(CHAINSRC) $(GENCSRC)
374 # all .h files except date.h, onames.h, pm.h, and vis_tab.h which would
375 # cause dependency loops if run through "make depend"
376 # and dgn_comp.h, dgn_file.h, lev_comp.h, special level & dungeon files.
378 HACKINCL = align.h amiconf.h artifact.h artilistj.h attrib.h beconf.h botl.h \
379 color.h config.h config1.h context.h coord.h decl.h def_os2.h \
380 display.h dlb.h dungeon.h engrave.h extern.h flag.h func_tab.h \
381 global.h hack.h lev.h lint.h macconf.h mextra.h mfndpos.h micro.h \
383 monattk.h mondata.h monflag.h monst.h monsym.h obj.h objclass.h \
384 os2conf.h patchlevel.h pcconf.h permonst.h prop.h rect.h region.h rm.h \
385 sp_lev.h spell.h sys.h system.h tcap.h timeout.h tosconf.h tradstdc.h \
386 trampoli.h trap.h unixconf.h vision.h vmsconf.h wintty.h \
387 winX.h winprocs.h wintype.h you.h youprop.h
389 HSOURCES = $(HACKINCL) date.h onames.h pm.h vis_tab.h\
390 lev_comp.h dgn_comp.h dgn_file.h
392 # the following .o's _must_ be made before any others (for makedefs)
393 FIRSTOBJ = monst.o objects.o
395 HOBJ = monstj.o objectsj.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o \
396 bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o \
397 do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o \
398 drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o \
399 extralev.o files.o fountain.o hack.o hacklib.o invent.o light.o \
400 lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o \
401 minion.o mklev.o mkmap.o \
402 mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o monstr.o \
403 mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o \
404 pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o \
405 quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o \
406 role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o \
408 steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o \
409 uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o \
410 wizard.o worm.o worn.o write.o zap.o \
411 $(REGEXOBJ) $(RANDOBJ) $(JOBJ) $(SYSOBJ) $(WINOBJ) $(HINTOBJ) version.o
412 # the .o files from the HACKCSRC, SYSSRC, and WINSRC lists
415 @echo "$(GAME) is up to date."
417 Sysunix: $(HOBJ) Makefile
419 $(LINK) $(LFLAGS) -o $(GAME) $(HOBJ) $(WINLIB) $(LIBS)
422 Sys3B2: $(HOBJ) Makefile
424 @$(LINK) $(LFLAGS) -o $(GAME) $(HOBJ) $(WINLIB) -lmalloc
427 Sysatt: $(HOBJ) Makefile
429 @$(LD) $(LFLAGS) /lib/crt0s.o /lib/shlib.ifile -o $(GAME) $(HOBJ)
432 Systos: $(HOBJ) Makefile
434 @$(LINK) $(LFLAGS) -o $(GAME) $(HOBJ) $(WINLIB)
437 SysV-AT: DUMB.Setup $(HOBJ) Makefile
439 @$(LINK) $(LFLAGS) -o $(GAME) $(HOBJ) $(WINLIB)
442 SysBe: $(HOBJ) Makefile
444 @$(LINK) $(LFLAGS) -o $(GAME) $(HOBJ) $(WINLIB) $(LIBS)
445 @xres -o $(GAME) ../win/BeOS/nethack.rsrc
449 DUMB.Setup: ../include/extern.h
450 cp ../include/extern.h ../include/extern.h.BAK
451 cat ../include/extern.h | \
452 sed -e '/^E\ int\ /!b' \
454 -e '/[(][*]occupation[)]/b' \
455 -e '/[(][*]afternmv[)]/b' \
461 -e 's/^\(.*\)$$/\/\* \1 \/\*\*\//' | \
462 sed -e '/^E\ void\ /!b' \
464 -e 's/^\(.*\)$$/\/\* \1 \/\*\*\//' \
465 >../include/extern.DUMB
466 cp ../include/extern.DUMB ../include/extern.h
472 # dependencies for makedefs and its outputs, which the util
473 # Makefile is responsible for keeping up to date
476 # special rules, to force update of makedefs, real dependencies should be
477 # below in the 'make depend' output.
479 $(CC) $(CFLAGS) -c monst.c
483 $(CC) $(CFLAGS) -c objects.c
486 # Qt windowport meta-object-compiler output
487 qt_kde0.moc: ../include/qt_kde0.h
488 $(QTDIR)/bin/moc -o qt_kde0.moc ../include/qt_kde0.h
490 qt_win.moc: ../include/qt_win.h
491 $(QTDIR)/bin/moc -o qt_win.moc ../include/qt_win.h
493 qttableview.moc: ../include/qttableview.h
494 $(QTDIR)/bin/moc -o qttableview.moc ../include/qttableview.h
496 $(MAKEDEFS): ../util/makedefs.c $(CONFIG_H) ../include/permonst.h \
497 ../include/objclass.h ../include/monsym.h \
498 ../include/artilist.h ../include/dungeon.h ../include/obj.h \
499 ../include/monst.h ../include/you.h ../include/flag.h \
500 ../include/dlb.h ../include/patchlevel.h ../include/qtext.h
501 @( cd ../util ; $(MAKE) makedefs)
503 ../include/onames.h: $(MAKEDEFS)
504 @( cd ../util ; $(MAKE) ../include/onames.h )
505 ../include/pm.h: $(MAKEDEFS)
506 @( cd ../util ; $(MAKE) ../include/pm.h )
507 monstr.c: $(MAKEDEFS)
508 @( cd ../util ; $(MAKE) ../src/monstr.c )
509 ../include/vis_tab.h: $(MAKEDEFS)
510 @( cd ../util ; $(MAKE) ../include/vis_tab.h )
511 # makedefs -z makes both vis_tab.h and vis_tab.c, but writes the .h first
512 vis_tab.c: ../include/vis_tab.h
513 tile.c: ../win/share/tilemap.c $(HACK_H)
514 @( cd ../util ; $(MAKE) ../src/tile.c )
516 ../win/gnome/gn_rip.h: ../win/X11/rip.xpm
517 cp ../win/X11/rip.xpm ../win/gnome/gn_rip.h
519 # date.h should be remade any time any of the source or include code
520 # is modified. Unfortunately, this would make the contents of this
521 # file far more complex. Since "hack.h" depends on most of the include
522 # files, we kludge around this by making date.h dependent on hack.h,
523 # even though it doesn't include this file.
525 # hack.h depends on makedefs' output, so we know makedefs will be
526 # up to date before being executed
527 ../include/date.h: $(VERSOURCES) $(HACK_H)
532 # lint cannot have -p here because (i) capitals are meaningful:
533 # [Ww]izard, (ii) identifiers may coincide in the first six places:
534 # doweararm() versus dowearring().
535 # _flsbuf comes from <stdio.h>, a bug in the system libraries.
536 @echo lint -axbh -DLINT ...
537 @lint -axbh -I../include -DLINT $(CSOURCES) | sed '/_flsbuf/d'
542 @ctags -tw $(CSOURCES)
543 @( cd ../include ; ctags -tw $(HSOURCES) )
544 @( cd ../util ; $(MAKE) tags )
547 -rm -f *.o $(HACK_H) $(CONFIG_H)
550 -rm -f a.out core $(GAME) Sys*
551 -rm -f ../include/date.h ../include/onames.h ../include/pm.h
552 -rm -f monstr.c ../include/vis_tab.h vis_tab.c tile.c *.moc
553 -rm -f ../win/gnome/gn_rip.h
556 depend: ../sys/unix/depend.awk \
557 $(SYSCSRC) $(WINCSRC) $(WINCXXSRC) $(CHAINSRC) $(GENCSRC) \
559 $(AWK) -f ../sys/unix/depend.awk ../include/*.h \
560 $(SYSCSRC) $(WINCSRC) $(WINCXXSRC) $(CHAINSRC) $(GENCSRC) \
562 @echo '/^# DO NOT DELETE THIS LINE OR CHANGE ANYTHING BEYOND IT/+2,$$d' >eddep
563 @echo '$$r makedep' >>eddep
565 @cp Makefile Makefile.bak
566 ed - Makefile < eddep
568 @echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
569 @echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
570 @echo '# see make depend above' >> Makefile
571 - diff Makefile.bak Makefile
574 # DO NOT DELETE THIS LINE OR CHANGE ANYTHING BEYOND IT
577 $(CONFIG_H): ../include/config.h ../include/config1.h ../include/tradstdc.h \
578 ../include/global.h ../include/coord.h ../include/vmsconf.h \
579 ../include/system.h ../include/unixconf.h ../include/os2conf.h \
580 ../include/micro.h ../include/pcconf.h ../include/tosconf.h \
581 ../include/amiconf.h ../include/macconf.h ../include/beconf.h \
582 ../include/wceconf.h ../include/ntconf.h
585 $(HACK_H): ../include/hack.h $(CONFIG_H) ../include/lint.h ../include/align.h \
586 ../include/dungeon.h ../include/monsym.h ../include/mkroom.h \
587 ../include/objclass.h ../include/youprop.h ../include/prop.h \
588 ../include/permonst.h ../include/monattk.h \
589 ../include/monflag.h ../include/mondata.h ../include/pm.h \
590 ../include/wintype.h ../include/context.h ../include/decl.h \
591 ../include/quest.h ../include/spell.h ../include/color.h \
592 ../include/obj.h ../include/you.h ../include/attrib.h \
593 ../include/monst.h ../include/mextra.h ../include/skills.h \
594 ../include/onames.h ../include/timeout.h ../include/trap.h \
595 ../include/flag.h ../include/rm.h ../include/vision.h \
596 ../include/display.h ../include/engrave.h ../include/rect.h \
597 ../include/region.h ../include/winprocs.h ../include/botl.h \
598 ../include/sys.h ../include/wintty.h ../include/trampoli.h
601 tos.o: ../sys/atari/tos.c $(HACK_H) ../include/tcap.h
602 $(CC) $(CFLAGS) -c ../sys/atari/tos.c
603 pcmain.o: ../sys/share/pcmain.c $(HACK_H) ../include/dlb.h \
604 #../include/win32api.h
605 $(CC) $(CFLAGS) -c ../sys/share/pcmain.c
606 pcsys.o: ../sys/share/pcsys.c $(HACK_H)
607 $(CC) $(CFLAGS) -c ../sys/share/pcsys.c
608 pctty.o: ../sys/share/pctty.c $(HACK_H)
609 $(CC) $(CFLAGS) -c ../sys/share/pctty.c
610 pcunix.o: ../sys/share/pcunix.c $(HACK_H)
611 $(CC) $(CFLAGS) -c ../sys/share/pcunix.c
612 pmatchregex.o: ../sys/share/pmatchregex.c $(HACK_H)
613 $(CC) $(CFLAGS) -c ../sys/share/pmatchregex.c
614 posixregex.o: ../sys/share/posixregex.c $(HACK_H)
615 $(CC) $(CFLAGS) -c ../sys/share/posixregex.c
616 random.o: ../sys/share/random.c $(HACK_H)
617 $(CC) $(CFLAGS) -c ../sys/share/random.c
618 ioctl.o: ../sys/share/ioctl.c $(HACK_H) ../include/tcap.h
619 $(CC) $(CFLAGS) -c ../sys/share/ioctl.c
620 unixtty.o: ../sys/share/unixtty.c $(HACK_H)
621 $(CC) $(CFLAGS) -c ../sys/share/unixtty.c
622 unixmain.o: ../sys/unix/unixmain.c $(HACK_H) ../include/dlb.h
623 $(CC) $(CFLAGS) -c ../sys/unix/unixmain.c
624 unixunix.o: ../sys/unix/unixunix.c $(HACK_H)
625 $(CC) $(CFLAGS) -c ../sys/unix/unixunix.c
626 unixres.o: ../sys/unix/unixres.c $(CONFIG_H)
627 $(CC) $(CFLAGS) -c ../sys/unix/unixres.c
628 bemain.o: ../sys/be/bemain.c $(HACK_H) ../include/dlb.h
629 $(CC) $(CFLAGS) -c ../sys/be/bemain.c
630 getline.o: ../win/tty/getline.c $(HACK_H) ../include/func_tab.h
631 $(CC) $(CFLAGS) -c ../win/tty/getline.c
632 termcap.o: ../win/tty/termcap.c $(HACK_H) ../include/tcap.h
633 $(CC) $(CFLAGS) -c ../win/tty/termcap.c
634 topl.o: ../win/tty/topl.c $(HACK_H) ../include/tcap.h
635 $(CC) $(CFLAGS) -c ../win/tty/topl.c
636 wintty.o: ../win/tty/wintty.c $(HACK_H) ../include/dlb.h ../include/tcap.h
637 $(CC) $(CFLAGS) -c ../win/tty/wintty.c
638 Window.o: ../win/X11/Window.c ../include/xwindowp.h ../include/xwindow.h \
639 $(CONFIG_H) ../include/lint.h
640 $(CC) $(CFLAGS) -c ../win/X11/Window.c
641 dialogs.o: ../win/X11/dialogs.c $(CONFIG_H) ../include/lint.h
642 $(CC) $(CFLAGS) -c ../win/X11/dialogs.c
643 winX.o: ../win/X11/winX.c $(HACK_H) ../include/winX.h ../include/dlb.h \
644 ../win/X11/nh72icon ../win/X11/nh56icon ../win/X11/nh32icon
645 $(CC) $(CFLAGS) -c ../win/X11/winX.c
646 winmap.o: ../win/X11/winmap.c ../include/xwindow.h $(HACK_H) ../include/dlb.h \
647 ../include/winX.h ../include/tile2x11.h
648 $(CC) $(CFLAGS) -c ../win/X11/winmap.c
649 winmenu.o: ../win/X11/winmenu.c $(HACK_H) ../include/winX.h
650 $(CC) $(CFLAGS) -c ../win/X11/winmenu.c
651 winmesg.o: ../win/X11/winmesg.c ../include/xwindow.h $(HACK_H) ../include/winX.h
652 $(CC) $(CFLAGS) -c ../win/X11/winmesg.c
653 winmisc.o: ../win/X11/winmisc.c $(HACK_H) ../include/func_tab.h \
655 $(CC) $(CFLAGS) -c ../win/X11/winmisc.c
656 winstat.o: ../win/X11/winstat.c $(HACK_H) ../include/winX.h
657 $(CC) $(CFLAGS) -c ../win/X11/winstat.c
658 wintext.o: ../win/X11/wintext.c $(HACK_H) ../include/winX.h ../include/xwindow.h
659 $(CC) $(CFLAGS) -c ../win/X11/wintext.c
660 winval.o: ../win/X11/winval.c $(HACK_H) ../include/winX.h
661 $(CC) $(CFLAGS) -c ../win/X11/winval.c
662 tile.o: tile.c $(HACK_H)
663 gnaskstr.o: ../win/gnome/gnaskstr.c ../win/gnome/gnaskstr.h \
664 ../win/gnome/gnmain.h
665 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnaskstr.c
666 gnbind.o: ../win/gnome/gnbind.c ../win/gnome/gnbind.h ../win/gnome/gnmain.h \
667 ../win/gnome/gnmenu.h ../win/gnome/gnaskstr.h \
668 ../win/gnome/gnyesno.h
669 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnbind.c
670 gnglyph.o: ../win/gnome/gnglyph.c ../win/gnome/gnglyph.h ../include/tile2x11.h
671 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnglyph.c
672 gnmain.o: ../win/gnome/gnmain.c ../win/gnome/gnmain.h ../win/gnome/gnsignal.h \
673 ../win/gnome/gnbind.h ../win/gnome/gnopts.h $(HACK_H) \
675 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnmain.c
676 gnmap.o: ../win/gnome/gnmap.c ../win/gnome/gnmap.h ../win/gnome/gnglyph.h \
677 ../win/gnome/gnsignal.h $(HACK_H)
678 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnmap.c
679 gnmenu.o: ../win/gnome/gnmenu.c ../win/gnome/gnmenu.h ../win/gnome/gnmain.h \
680 ../win/gnome/gnbind.h ../include/func_tab.h
681 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnmenu.c
682 gnmesg.o: ../win/gnome/gnmesg.c ../win/gnome/gnmesg.h ../win/gnome/gnsignal.h
683 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnmesg.c
684 gnopts.o: ../win/gnome/gnopts.c ../win/gnome/gnopts.h ../win/gnome/gnglyph.h \
685 ../win/gnome/gnmain.h ../win/gnome/gnmap.h $(HACK_H)
686 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnopts.c
687 gnplayer.o: ../win/gnome/gnplayer.c ../win/gnome/gnplayer.h \
688 ../win/gnome/gnmain.h $(HACK_H)
689 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnplayer.c
690 gnsignal.o: ../win/gnome/gnsignal.c ../win/gnome/gnsignal.h \
691 ../win/gnome/gnmain.h
692 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnsignal.c
693 gnstatus.o: ../win/gnome/gnstatus.c ../win/gnome/gnstatus.h \
694 ../win/gnome/gnsignal.h ../win/gnome/gn_xpms.h \
695 ../win/gnome/gnomeprv.h
696 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnstatus.c
697 gntext.o: ../win/gnome/gntext.c ../win/gnome/gntext.h ../win/gnome/gnmain.h \
698 ../win/gnome/gn_rip.h
699 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gntext.c
700 gnyesno.o: ../win/gnome/gnyesno.c ../win/gnome/gnbind.h ../win/gnome/gnyesno.h
701 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnyesno.c
702 gnworn.o: ../win/gnome/gnworn.c ../win/gnome/gnworn.h ../win/gnome/gnglyph.h \
703 ../win/gnome/gnsignal.h ../win/gnome/gnomeprv.h
704 $(CC) $(CFLAGS) $(GNOMEINC) -c ../win/gnome/gnworn.c
705 wingem.o: ../win/gem/wingem.c $(HACK_H) ../include/func_tab.h ../include/dlb.h \
706 ../include/patchlevel.h ../include/wingem.h
707 $(CC) $(CFLAGS) -c ../win/gem/wingem.c
708 wingem1.o: ../win/gem/wingem1.c ../include/gem_rsc.h ../include/load_img.h \
709 ../include/gr_rect.h ../include/wintype.h ../include/wingem.h
710 $(CC) $(CFLAGS) -c ../win/gem/wingem1.c
711 load_img.o: ../win/gem/load_img.c ../include/load_img.h
712 $(CC) $(CFLAGS) -c ../win/gem/load_img.c
713 gr_rect.o: ../win/gem/gr_rect.c ../include/gr_rect.h
714 $(CC) $(CFLAGS) -c ../win/gem/gr_rect.c
715 tile.o: tile.c $(HACK_H)
716 qt_win.o: ../win/Qt/qt_win.cpp $(HACK_H) ../include/func_tab.h \
717 ../include/dlb.h ../include/patchlevel.h ../include/tile2x11.h \
718 ../include/qt_win.h ../include/qt_clust.h ../include/qt_kde0.h \
719 ../include/qt_xpms.h qt_win.moc qt_kde0.moc qttableview.moc
720 $(CXX) $(CXXFLAGS) -c ../win/Qt/qt_win.cpp
721 qt_clust.o: ../win/Qt/qt_clust.cpp ../include/qt_clust.h
722 $(CXX) $(CXXFLAGS) -c ../win/Qt/qt_clust.cpp
723 qttableview.o: ../win/Qt/qttableview.cpp ../include/qttableview.h
724 $(CXX) $(CXXFLAGS) -c ../win/Qt/qttableview.cpp
725 wc_chainin.o: ../win/chain/wc_chainin.c $(HACK_H)
726 $(CC) $(CFLAGS) -c ../win/chain/wc_chainin.c
727 wc_chainout.o: ../win/chain/wc_chainout.c $(HACK_H)
728 $(CC) $(CFLAGS) -c ../win/chain/wc_chainout.c
729 wc_trace.o: ../win/chain/wc_trace.c $(HACK_H) ../include/func_tab.h
730 $(CC) $(CFLAGS) -c ../win/chain/wc_trace.c
731 monstr.o: monstr.c $(CONFIG_H)
732 vis_tab.o: vis_tab.c $(CONFIG_H) ../include/vis_tab.h
733 allmain.o: allmain.c $(HACK_H)
734 alloc.o: alloc.c $(CONFIG_H)
735 apply.o: apply.c $(HACK_H)
736 artifact.o: artifact.c $(HACK_H) ../include/artifact.h ../include/artilist.h
737 attrib.o: attrib.c $(HACK_H)
738 ball.o: ball.c $(HACK_H)
739 bones.o: bones.c $(HACK_H) ../include/lev.h
740 botl.o: botl.c $(HACK_H)
741 cmd.o: cmd.c $(HACK_H) ../include/func_tab.h
742 dbridge.o: dbridge.c $(HACK_H)
743 decl.o: decl.c $(HACK_H)
744 detect.o: detect.c $(HACK_H) ../include/artifact.h
745 dig.o: dig.c $(HACK_H)
746 display.o: display.c $(HACK_H)
747 dlb.o: dlb.c $(CONFIG_H) ../include/dlb.h
748 do.o: do.c $(HACK_H) ../include/lev.h
749 do_name.o: do_name.c $(HACK_H)
750 do_wear.o: do_wear.c $(HACK_H)
751 dog.o: dog.c $(HACK_H)
752 dogmove.o: dogmove.c $(HACK_H) ../include/mfndpos.h
753 dokick.o: dokick.c $(HACK_H)
754 dothrow.o: dothrow.c $(HACK_H)
755 drawing.o: drawing.c $(HACK_H) ../include/tcap.h
756 dungeon.o: dungeon.c $(HACK_H) ../include/dgn_file.h ../include/dlb.h \
758 eat.o: eat.c $(HACK_H)
759 end.o: end.c $(HACK_H) ../include/lev.h ../include/dlb.h
760 engrave.o: engrave.c $(HACK_H) ../include/lev.h
761 exper.o: exper.c $(HACK_H)
762 explode.o: explode.c $(HACK_H)
763 extralev.o: extralev.c $(HACK_H)
764 files.o: files.c $(HACK_H) ../include/dlb.h #zlib.h
765 fountain.o: fountain.c $(HACK_H)
766 hack.o: hack.c $(HACK_H)
767 hacklib.o: hacklib.c $(HACK_H)
768 invent.o: invent.c $(HACK_H)
769 light.o: light.c $(HACK_H) ../include/lev.h
770 lock.o: lock.c $(HACK_H)
771 mail.o: mail.c $(HACK_H) ../include/mail.h
772 makemon.o: makemon.c $(HACK_H)
773 mapglyph.o: mapglyph.c $(HACK_H)
774 mcastu.o: mcastu.c $(HACK_H)
775 mhitm.o: mhitm.c $(HACK_H) ../include/artifact.h
776 mhitu.o: mhitu.c $(HACK_H) ../include/artifact.h
777 minion.o: minion.c $(HACK_H)
778 mklev.o: mklev.c $(HACK_H)
779 mkmap.o: mkmap.c $(HACK_H) ../include/sp_lev.h
780 mkmaze.o: mkmaze.c $(HACK_H) ../include/sp_lev.h ../include/lev.h
781 mkobj.o: mkobj.c $(HACK_H)
782 mkroom.o: mkroom.c $(HACK_H)
783 mon.o: mon.c $(HACK_H) ../include/mfndpos.h
784 mondata.o: mondata.c $(HACK_H)
785 monmove.o: monmove.c $(HACK_H) ../include/mfndpos.h ../include/artifact.h
786 monst.o: monst.c $(CONFIG_H) ../include/permonst.h ../include/align.h \
787 ../include/monattk.h ../include/monflag.h ../include/monsym.h \
789 mplayer.o: mplayer.c $(HACK_H)
790 mthrowu.o: mthrowu.c $(HACK_H)
791 muse.o: muse.c $(HACK_H)
792 music.o: music.c $(HACK_H) #interp.c
793 o_init.o: o_init.c $(HACK_H) ../include/lev.h
794 objects.o: objects.c $(CONFIG_H) ../include/obj.h ../include/objclass.h \
795 ../include/prop.h ../include/skills.h ../include/color.h
796 objectsj.o: objectsj.c $(CONFIG_H) ../include/obj.h ../include/objclass.h \
797 ../include/prop.h ../include/skills.h ../include/color.h
798 objnam.o: objnam.c $(HACK_H)
799 options.o: options.c $(CONFIG_H) ../include/objclass.h ../include/flag.h \
800 $(HACK_H) ../include/tcap.h
801 pager.o: pager.c $(HACK_H) ../include/dlb.h
802 pickup.o: pickup.c $(HACK_H)
803 pline.o: pline.c $(HACK_H)
804 polyself.o: polyself.c $(HACK_H)
805 potion.o: potion.c $(HACK_H)
806 pray.o: pray.c $(HACK_H)
807 priest.o: priest.c $(HACK_H) ../include/mfndpos.h
808 quest.o: quest.c $(HACK_H) ../include/qtext.h
809 questpgr.o: questpgr.c $(HACK_H) ../include/dlb.h ../include/qtext.h
810 read.o: read.c $(HACK_H)
811 rect.o: rect.c $(HACK_H)
812 region.o: region.c $(HACK_H) ../include/lev.h
813 restore.o: restore.c $(HACK_H) ../include/lev.h ../include/tcap.h
814 rip.o: rip.c $(HACK_H)
815 rnd.o: rnd.c $(HACK_H)
816 role.o: role.c $(HACK_H)
817 rumors.o: rumors.c $(HACK_H) ../include/lev.h ../include/dlb.h
818 save.o: save.c $(HACK_H) ../include/lev.h
819 shk.o: shk.c $(HACK_H)
820 shknam.o: shknam.c $(HACK_H)
821 sit.o: sit.c $(HACK_H) ../include/artifact.h
822 sounds.o: sounds.c $(HACK_H)
823 sp_lev.o: sp_lev.c $(HACK_H) ../include/dlb.h ../include/sp_lev.h
824 spell.o: spell.c $(HACK_H)
825 steal.o: steal.c $(HACK_H)
826 steed.o: steed.c $(HACK_H)
827 sys.o: sys.c $(HACK_H)
828 teleport.o: teleport.c $(HACK_H)
829 timeout.o: timeout.c $(HACK_H) ../include/lev.h
830 topten.o: topten.c $(HACK_H) ../include/dlb.h ../include/patchlevel.h
831 track.o: track.c $(HACK_H)
832 trap.o: trap.c $(HACK_H)
833 u_init.o: u_init.c $(HACK_H)
834 uhitm.o: uhitm.c $(HACK_H)
835 vault.o: vault.c $(HACK_H)
836 version.o: version.c $(HACK_H) ../include/dlb.h ../include/date.h \
837 ../include/patchlevel.h
838 vision.o: vision.c $(HACK_H) ../include/vis_tab.h
839 weapon.o: weapon.c $(HACK_H)
840 were.o: were.c $(HACK_H)
841 wield.o: wield.c $(HACK_H)
842 windows.o: windows.c $(HACK_H) ../include/wingem.h ../include/winGnome.h
843 wizard.o: wizard.c $(HACK_H) ../include/qtext.h
844 worm.o: worm.c $(HACK_H) ../include/lev.h
845 worn.o: worn.c $(HACK_H)
846 write.o: write.c $(HACK_H)
847 zap.o: zap.c $(HACK_H)
848 jconj.o: ../japanese/jconj.c ../include/hack.h
849 $(CC) $(CFLAGS) -c ../japanese/jconj.c
850 jlib.o: ../japanese/jlib.c ../include/hack.h
851 $(CC) $(CFLAGS) -c ../japanese/jlib.c
852 # DEPENDENCIES MUST END AT END OF FILE
853 # IF YOU PUT STUFF HERE IT WILL GO AWAY
854 # see make depend above