Unix Makefiles
Move building uudecode for unpacking .Wav files from Makefile.dat to Makefile.utl and add uudecode to util's 'make spotless'.
This commit is contained in:
@@ -354,6 +354,11 @@ tileedit: tileedit.o $(TEXT_IO)
|
|||||||
$(QTDIR)/bin/moc -o tileedit.moc tileedit.h
|
$(QTDIR)/bin/moc -o tileedit.moc tileedit.h
|
||||||
$(CXXLINK) -o tileedit -L$(QTDIR)/lib tileedit.o $(TEXT_IO) -lqt
|
$(CXXLINK) -o tileedit -L$(QTDIR)/lib tileedit.o $(TEXT_IO) -lqt
|
||||||
|
|
||||||
|
uudecode: uudecode.o
|
||||||
|
$(CLINK) $(LFLAGS) -o uudecode uudecode.o $(LIBS)
|
||||||
|
uudecode.o: ../sys/share/uudecode.c
|
||||||
|
$(CC) $(CFLAGS) -c -o uudecode.o ../sys/share/uudecode.c
|
||||||
|
|
||||||
# using dependencies like
|
# using dependencies like
|
||||||
# ../src/foo::
|
# ../src/foo::
|
||||||
# @( cd ../src ; $(MAKE) foo )
|
# @( cd ../src ; $(MAKE) foo )
|
||||||
@@ -408,4 +413,4 @@ clean:
|
|||||||
spotless: clean
|
spotless: clean
|
||||||
-rm -f makedefs recover dlb
|
-rm -f makedefs recover dlb
|
||||||
-rm -f gif2txt txt2ppm tile2x11 tile2img.ttp xpm2img.ttp \
|
-rm -f gif2txt txt2ppm tile2x11 tile2img.ttp xpm2img.ttp \
|
||||||
tilemap tileedit tile2bmp
|
tilemap tileedit tile2bmp uudecode
|
||||||
|
|||||||
@@ -2,18 +2,22 @@
|
|||||||
# NetHack 3.7 multisnd-post.370 $NHDT-Date: 1597332785 2020/08/13 15:33:05 $ $NHDT-Branch: NetHack-3.7 $
|
# NetHack 3.7 multisnd-post.370 $NHDT-Date: 1597332785 2020/08/13 15:33:05 $ $NHDT-Branch: NetHack-3.7 $
|
||||||
|
|
||||||
ifeq "$(HAVE_SNDLIB)" "1"
|
ifeq "$(HAVE_SNDLIB)" "1"
|
||||||
|
# note: one possible value for $(SNDLIBSRC) is 'macsound.m' which is written
|
||||||
|
# in Objective-C; this relies on $(CC) recognizing the filename suffix
|
||||||
|
# and knowing how to handle that; clang on MacOS does, both when
|
||||||
|
# masquerading as gcc and when invoked as itself
|
||||||
$(TARGETPFX)$(SNDLIBOBJ): $(SNDLIBSRC) $(HACK_H)
|
$(TARGETPFX)$(SNDLIBOBJ): $(SNDLIBSRC) $(HACK_H)
|
||||||
$(CC) $(CFLAGS) -c -o$@ $(SNDLIBSRC)
|
$(CC) $(CFLAGS) -c -o $@ $(SNDLIBSRC)
|
||||||
|
|
||||||
ifeq "$(NEEDS_WAV)" "1"
|
ifeq "$(NEEDS_WAV)" "1"
|
||||||
|
|
||||||
$(WAVDIR)/%.wav: ../util/uudecode $(WAVDIR)/%.uu
|
$(WAVDIR)/%.wav: ../util/uudecode $(WAVDIR)/%.uu
|
||||||
$^
|
$^
|
||||||
mv $(notdir $@) $@
|
mv $(notdir $@) $@
|
||||||
|
|
||||||
../util/uudecode: uudecode.o
|
../util/uudecode: ../sys/share/uudecode.c
|
||||||
$(CC) $(LFLAGS) uudecode.o -o $@
|
( cd ../util ; $(MAKE) uudecode )
|
||||||
|
|
||||||
uudecode.o: ../sys/share/uudecode.c
|
|
||||||
$(CC) $(CFLAGS) -c -o $@ ../sys/share/uudecode.c
|
|
||||||
endif # NEEDS_WAV
|
endif # NEEDS_WAV
|
||||||
endif # HAVE_SNDLIB
|
endif # HAVE_SNDLIB
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user