mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
ext2spice: Makefile use EXT2SPICE_MAIN for deprecated standalone
This commit is contained in:
committed by
R. Timothy Edwards
parent
df6bc6bc51
commit
659ec36d2d
+4
-1
@@ -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}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user