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:
@@ -2,18 +2,22 @@
|
||||
# NetHack 3.7 multisnd-post.370 $NHDT-Date: 1597332785 2020/08/13 15:33:05 $ $NHDT-Branch: NetHack-3.7 $
|
||||
|
||||
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)
|
||||
$(CC) $(CFLAGS) -c -o$@ $(SNDLIBSRC)
|
||||
$(CC) $(CFLAGS) -c -o $@ $(SNDLIBSRC)
|
||||
|
||||
ifeq "$(NEEDS_WAV)" "1"
|
||||
|
||||
$(WAVDIR)/%.wav: ../util/uudecode $(WAVDIR)/%.uu
|
||||
$^
|
||||
mv $(notdir $@) $@
|
||||
|
||||
../util/uudecode: uudecode.o
|
||||
$(CC) $(LFLAGS) uudecode.o -o $@
|
||||
../util/uudecode: ../sys/share/uudecode.c
|
||||
( cd ../util ; $(MAKE) uudecode )
|
||||
|
||||
uudecode.o: ../sys/share/uudecode.c
|
||||
$(CC) $(CFLAGS) -c -o $@ ../sys/share/uudecode.c
|
||||
endif # NEEDS_WAV
|
||||
endif # HAVE_SNDLIB
|
||||
|
||||
|
||||
Reference in New Issue
Block a user