ext2spice: Makefile use EXT2SPICE_MAIN for deprecated standalone

This commit is contained in:
Darryl L. Miles 2025-07-18 14:12:51 +01:00 committed by R. Timothy Edwards
parent df6bc6bc51
commit 659ec36d2d
2 changed files with 6 additions and 3 deletions

View File

@ -11,7 +11,7 @@ EXTRA_LIBS = ${MAGICDIR}/extflat/libextflat.o ${MAGICDIR}/utils/libutils.a
include ${MAGICDIR}/defs.mak
LIBS += -lm ${LD_EXTRA_LIBS} ${SUB_EXTRA_LIBS}
CLEANS += exttospice${SHDLIB_EXT} spicewrap.o spicehier.o
CLEANS += exttospice${SHDLIB_EXT} ext2spice_main.o spicewrap.o spicehier.o
main: ext2spice
@ -23,6 +23,9 @@ spicewrap.o: ext2spice.c ext2spice.h
spicehier.o: ext2hier.c ext2spice.h
${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ext2hier.c -c -o spicehier.o
ext2spice_main.o: ext2spice.c
${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} -DEXT2SPICE_MAIN -c -o $@ $^
exttospice${SHDLIB_EXT}: spicewrap.o spicehier.o ${MAGICDIR}/extflat/libextflat.o
@echo --- making exttospice Tcl library \(exttospice${SHDLIB_EXT}\)
${RM} exttospice${SHDLIB_EXT}

View File

@ -1157,7 +1157,7 @@ runexttospice:
return;
}
#if 0 /* Independent program "ext2spice" has been deprecated */
#ifdef EXT2SPICE_MAIN /* Independent program "ext2spice" has been deprecated */
/*
* ----------------------------------------------------------------------------
@ -1324,7 +1324,7 @@ main(
exit (0);
}
#endif /* Deprecated */
#endif /* EXT2SPICE_MAIN Deprecated */
/*