Revert "don't build in support for obsolete makedefs options"

This reverts commit 13f49bdd92.
This commit is contained in:
nhmall
2023-11-19 17:36:25 -05:00
parent a42d3dadce
commit 5c8b36e95a
5 changed files with 451 additions and 506 deletions

View File

@@ -746,9 +746,9 @@ $(TARGETPFX)date.o: date.c $(HACK_H) $(HACKCSRC) $(HOBJ)
# Do NOT include ../dat/gitinfo.txt as either a prerequisite or target.
# 'makedefs -v' processes it when present and ignores it if not.
#
#../include/date.h: ../util/makedefs $(VERSOURCES) $(HACK_H)
# -$(SHELL) ../sys/unix/gitinfo.sh $(GITINFO) #before 'makedefs -v'
# ../util/makedefs -v
../include/date.h: ../util/makedefs $(VERSOURCES) $(HACK_H)
-$(SHELL) ../sys/unix/gitinfo.sh $(GITINFO) #before 'makedefs -v'
../util/makedefs -v
lint:
# lint cannot have -p here because (i) capitals are meaningful:

View File

@@ -67,7 +67,7 @@ DIRPERM = 0755
# Qt without X11; assumes GRAPHIC_TOMBSTONE:
# VARDATND = nhtiles.bmp pet_mark.xbm pilemark.xbm rip.xpm
VARDATD = bogusmon data engrave epitaph oracles quest.lua rumors
VARDATD = bogusmon data engrave epitaph oracles options quest.lua rumors
VARDAT = $(VARDATD) $(VARDATND)
# Some versions of make use the SHELL environment variable as the
@@ -245,9 +245,8 @@ GEM_RSC.RSC:
title.img:
( cd dat ; $(MAKE) title.img )
check-dlb:
@true
# @if egrep -s librarian options; then $(MAKE) dlb ; else true ; fi
check-dlb: options
@if egrep -s librarian dat/options ; then $(MAKE) dlb ; else true ; fi
dlb:
( cd util ; $(MAKE) dlb )
@@ -265,12 +264,12 @@ recover: $(GAME)
( cd util ; $(MAKE) recover )
dofiles:
# target=`sed -n \
# -e '/librarian/{' \
# -e 's/.*/dlb/p' \
# -e 'q' \
# -e '}' \
# -e '$$s/.*/nodlb/p' < dat/options` ; \
target=`sed -n \
-e '/librarian/{' \
-e 's/.*/dlb/p' \
-e 'q' \
-e '}' \
-e '$$s/.*/nodlb/p' < dat/options` ; \
$(MAKE) dofiles-$${target-nodlb}
cp src/$(GAME) $(INSTDIR)
cp util/recover $(INSTDIR)

View File

@@ -194,11 +194,6 @@ ODATE = $(OBJDIR)/date.o
# object files for makedefs
MAKEOBJS = makedefs.o $(OMONOBJ) $(ODATE) $(OALLOC)
# To include old makedefs options support, define
# OLD_MAKEDEFS_OPTIONS
#OLD_MAKEDEFS_OPTIONS = -DOLD_MAKEDEFS_OPTIONS
OLD_MAKEDEFS_OPTIONS =
# object files for recovery utility
RECOVOBJS = $(TARGETPFX)recover.o
@@ -236,7 +231,7 @@ makedefs.o: makedefs.c ../src/mdlib.c $(CONFIG_H) \
../include/monst.h ../include/monsters.h ../include/objects.h \
../include/you.h ../include/context.h ../include/flag.h \
../include/dlb.h ../include/patchlevel.h mdgrep.h
$(CC) $(CFLAGS) $(CSTD) $(OLD_MAKEDEFS_OPTIONS) -c makedefs.c -o $@
$(CC) $(CFLAGS) $(CSTD) -c makedefs.c -o $@
# Don't require perl to build; that is why mdgrep.h is spelled wrong below.
mdgreph: mdgrep.pl