Revert "don't build in support for obsolete makedefs options"
This reverts commit 13f49bdd92.
This commit is contained in:
@@ -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.
|
# Do NOT include ../dat/gitinfo.txt as either a prerequisite or target.
|
||||||
# 'makedefs -v' processes it when present and ignores it if not.
|
# 'makedefs -v' processes it when present and ignores it if not.
|
||||||
#
|
#
|
||||||
#../include/date.h: ../util/makedefs $(VERSOURCES) $(HACK_H)
|
../include/date.h: ../util/makedefs $(VERSOURCES) $(HACK_H)
|
||||||
# -$(SHELL) ../sys/unix/gitinfo.sh $(GITINFO) #before 'makedefs -v'
|
-$(SHELL) ../sys/unix/gitinfo.sh $(GITINFO) #before 'makedefs -v'
|
||||||
# ../util/makedefs -v
|
../util/makedefs -v
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
# lint cannot have -p here because (i) capitals are meaningful:
|
# lint cannot have -p here because (i) capitals are meaningful:
|
||||||
|
|||||||
+9
-10
@@ -67,7 +67,7 @@ DIRPERM = 0755
|
|||||||
# Qt without X11; assumes GRAPHIC_TOMBSTONE:
|
# Qt without X11; assumes GRAPHIC_TOMBSTONE:
|
||||||
# VARDATND = nhtiles.bmp pet_mark.xbm pilemark.xbm rip.xpm
|
# 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)
|
VARDAT = $(VARDATD) $(VARDATND)
|
||||||
|
|
||||||
# Some versions of make use the SHELL environment variable as the
|
# Some versions of make use the SHELL environment variable as the
|
||||||
@@ -245,9 +245,8 @@ GEM_RSC.RSC:
|
|||||||
title.img:
|
title.img:
|
||||||
( cd dat ; $(MAKE) title.img )
|
( cd dat ; $(MAKE) title.img )
|
||||||
|
|
||||||
check-dlb:
|
check-dlb: options
|
||||||
@true
|
@if egrep -s librarian dat/options ; then $(MAKE) dlb ; else true ; fi
|
||||||
# @if egrep -s librarian options; then $(MAKE) dlb ; else true ; fi
|
|
||||||
|
|
||||||
dlb:
|
dlb:
|
||||||
( cd util ; $(MAKE) dlb )
|
( cd util ; $(MAKE) dlb )
|
||||||
@@ -265,12 +264,12 @@ recover: $(GAME)
|
|||||||
( cd util ; $(MAKE) recover )
|
( cd util ; $(MAKE) recover )
|
||||||
|
|
||||||
dofiles:
|
dofiles:
|
||||||
# target=`sed -n \
|
target=`sed -n \
|
||||||
# -e '/librarian/{' \
|
-e '/librarian/{' \
|
||||||
# -e 's/.*/dlb/p' \
|
-e 's/.*/dlb/p' \
|
||||||
# -e 'q' \
|
-e 'q' \
|
||||||
# -e '}' \
|
-e '}' \
|
||||||
# -e '$$s/.*/nodlb/p' < dat/options` ; \
|
-e '$$s/.*/nodlb/p' < dat/options` ; \
|
||||||
$(MAKE) dofiles-$${target-nodlb}
|
$(MAKE) dofiles-$${target-nodlb}
|
||||||
cp src/$(GAME) $(INSTDIR)
|
cp src/$(GAME) $(INSTDIR)
|
||||||
cp util/recover $(INSTDIR)
|
cp util/recover $(INSTDIR)
|
||||||
|
|||||||
@@ -194,11 +194,6 @@ ODATE = $(OBJDIR)/date.o
|
|||||||
# object files for makedefs
|
# object files for makedefs
|
||||||
MAKEOBJS = makedefs.o $(OMONOBJ) $(ODATE) $(OALLOC)
|
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
|
# object files for recovery utility
|
||||||
RECOVOBJS = $(TARGETPFX)recover.o
|
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/monst.h ../include/monsters.h ../include/objects.h \
|
||||||
../include/you.h ../include/context.h ../include/flag.h \
|
../include/you.h ../include/context.h ../include/flag.h \
|
||||||
../include/dlb.h ../include/patchlevel.h mdgrep.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.
|
# Don't require perl to build; that is why mdgrep.h is spelled wrong below.
|
||||||
mdgreph: mdgrep.pl
|
mdgreph: mdgrep.pl
|
||||||
|
|||||||
@@ -701,7 +701,7 @@ CLEAN_FILE += $(UTARGETS) $(UOBJS)
|
|||||||
#==========================================
|
#==========================================
|
||||||
ODLB = $(O)dlb
|
ODLB = $(O)dlb
|
||||||
DLBOBJS = $(addprefix $(ODLB)/, alloc.o dlb.o dlb_main.o panic.o)
|
DLBOBJS = $(addprefix $(ODLB)/, alloc.o dlb.o dlb_main.o panic.o)
|
||||||
DAT_CLEAN = $(addprefix $(DAT)/, data oracles porthelp rumors engrave epitaph bogusmon)
|
DAT_CLEAN = $(addprefix $(DAT)/, data oracles options porthelp rumors engrave epitaph bogusmon)
|
||||||
DAT_NOCLEAN = $(addprefix $(DAT)/, help hh cmdhelp keyhelp history opthelp optmenu \
|
DAT_NOCLEAN = $(addprefix $(DAT)/, help hh cmdhelp keyhelp history opthelp optmenu \
|
||||||
wizhelp license engrave epitaph bogusmon tribute)
|
wizhelp license engrave epitaph bogusmon tribute)
|
||||||
DLBLST = $(DAT)/dlb.lst
|
DLBLST = $(DAT)/dlb.lst
|
||||||
@@ -728,6 +728,9 @@ $(DAT)/data: $(U)makedefs.exe $(DAT)/data.base
|
|||||||
$(DAT)/oracles: $(U)makedefs.exe $(DAT)/oracles.txt
|
$(DAT)/oracles: $(U)makedefs.exe $(DAT)/oracles.txt
|
||||||
$< -h
|
$< -h
|
||||||
|
|
||||||
|
$(DAT)/options $(INCL)/date.h: $(U)makedefs.exe
|
||||||
|
$< -v
|
||||||
|
|
||||||
$(DAT)/porthelp: $(MSWSYS)/porthelp
|
$(DAT)/porthelp: $(MSWSYS)/porthelp
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
@@ -744,6 +747,9 @@ $(DAT)/bogusmon: $(U)makedefs.exe $(DAT)/bogusmon.txt $(DAT)/engrave.txt $(DAT)/
|
|||||||
$(DLBLST): $(LUAFILES) | $(DAT_CLEAN) $(DAT_NOCLEAN)
|
$(DLBLST): $(LUAFILES) | $(DAT_CLEAN) $(DAT_NOCLEAN)
|
||||||
echo data > $(DLBLST)
|
echo data > $(DLBLST)
|
||||||
echo oracles >> $(DLBLST)
|
echo oracles >> $(DLBLST)
|
||||||
|
echo options >> $(DLBLST)
|
||||||
|
if [ -f $(DAT)/ttyoptions ] ; then echo ttyoptions >> $(DLBLST) ; fi
|
||||||
|
if [ -f $(DAT)/guioptions ] ; then echo guioptions >> $(DLBLST) ; fi
|
||||||
echo porthelp >> $(DLBLST)
|
echo porthelp >> $(DLBLST)
|
||||||
echo rumors >> $(DLBLST)
|
echo rumors >> $(DLBLST)
|
||||||
echo help >> $(DLBLST)
|
echo help >> $(DLBLST)
|
||||||
|
|||||||
+431
-486
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user