mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-07 11:31:01 +02:00
rules.mak has no @...@ substitutions, so there is no reason to copy it into
the build top. Point all 38 subdir Makefile.in includes at the source copy
directly -- ${MAGICSRC}/rules.mak instead of ${MAGICDIR}/rules.mak -- and
remove AC_CONFIG_FILES([rules.mak:rules.mak]) from configure. defs.mak (the
one make fragment with substitutions) remains the only generated file in the
build top. readline/ and the top Makefile never included rules.mak, so they
are unaffected; AC_CONFIG_SRCDIR(rules.mak) (the srcdir sentinel) is kept.
Now editing rules.mak in the source tree takes effect without reconfiguring.
Verified rc=0, 375 files, both in-tree and out-of-tree; out-of-tree build
top has no rules.mak; distclean rc=0.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
52 lines
1.8 KiB
Makefile
52 lines
1.8 KiB
Makefile
#
|
|
# rcsid "$Header: /usr/cvsroot/magic-8.0/ext2spice/Makefile,v 1.2 2010/08/10 00:18:45 tim Exp $"
|
|
#
|
|
|
|
MODULE = ext2spice
|
|
# Provided by configure: the module's source dir + the build top.
|
|
# defs.mak sees `srcdir` already set and skips its own srcdir derivation.
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
MAGICDIR = @top_builddir@
|
|
SRCS = ext2spice.c ext2hier.c
|
|
|
|
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} ext2spice_main.o spicewrap.o spicehier.o
|
|
|
|
main: ext2spice
|
|
|
|
tcl-main: exttospice${SHDLIB_EXT}
|
|
|
|
spicewrap.o: ext2spice.c ext2spice.h
|
|
${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} -c $< -o $@
|
|
|
|
spicehier.o: ext2hier.c ext2spice.h
|
|
${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} -c $< -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}
|
|
${CC} ${CFLAGS} ${CPPFLAGS} -o $@ ${LDFLAGS} ${LDDL_FLAGS} spicewrap.o spicehier.o \
|
|
${MAGICDIR}/extflat/libextflat.o ${LD_SHARED} -lc ${LIBS}
|
|
|
|
install: $(DESTDIR)${INSTALL_BINDIR}/${MODULE}${EXEEXT} $(DESTDIR)${INSTALL_BINDIR}/spice2sim
|
|
|
|
install-tcl: $(DESTDIR)${INSTALL_TCLDIR}/exttospice${SHDLIB_EXT} $(DESTDIR)${INSTALL_BINDIR}/spice2sim
|
|
|
|
$(DESTDIR)${INSTALL_TCLDIR}/exttospice${SHDLIB_EXT}: exttospice${SHDLIB_EXT}
|
|
${RM} $(DESTDIR)${INSTALL_TCLDIR}/exttospice${SHDLIB_EXT}
|
|
${CP} exttospice${SHDLIB_EXT} $(DESTDIR)${INSTALL_TCLDIR}/exttospice${SHDLIB_EXT}
|
|
|
|
$(DESTDIR)${INSTALL_BINDIR}/spice2sim: spice2sim
|
|
${RM} $(DESTDIR)${INSTALL_BINDIR}/spice2sim
|
|
${CP} $< $(DESTDIR)${INSTALL_BINDIR}/spice2sim
|
|
|
|
include ${MAGICSRC}/rules.mak
|