mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-07 03:21:20 +02:00
From an independent review of the branch:
* Makefile.in: `tcltk` is in both INSTALL_CAD_DIRS and PROGRAMS (Tcl build),
so install@tcltk / install-tcl@tcltk were defined twice -> "given more than
once" warnings on every command. Wrap both install lists in $(sort ...) to
dedup (as CLEAN_TARGETS already does). Also fix a stale comment (module@ now
waits for ${DATABASE_H}, not a `depend` phase).
* toolchains/emscripten/defs.mak: the scmos display-file embed globbed
`mos.*.dstyle`, which misses mos.7bit.mraster_dstyle (an underscore, not a
dot) -- so the mono-raster style was not embedded in WASM, and the comment
wrongly called that file non-existent. Glob `mos.*dstyle` to cover both.
* npm/build.sh: sed_strip_cr wrote the file back unconditionally, bumping the
mtimes of configure and every scripts/ file on each WASM build (contradicting
the "source never mutated" guarantee and able to force a coexisting native
rebuild). Only write back when a CR was actually stripped.
* graphics/Makefile.in: remove the dead DEPSRCS block left behind by retiring
the Depend machinery (it also referenced an undefined ${THREE_D_SRCS}).
* scripts/defs.mak.in: clarify that only the SOURCE_DATE_EPOCH branch is UTC.
Verified: 0 duplicate-target warnings, wildcard now lists mos.7bit.mraster_dstyle,
full Tcl build+install rc=0 (375 files), graphics lib builds, build.sh syntax OK.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
68 lines
2.1 KiB
Makefile
68 lines
2.1 KiB
Makefile
#
|
|
# rcsid $Header: /usr/cvsroot/magic-8.0/graphics/Makefile,v 1.1.1.1 2008/02/03 20:43:50 tim Exp $
|
|
#
|
|
|
|
MODULE = graphics
|
|
# 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@
|
|
BASE_SRCS = grMain.c grLock.c grDStyle.c grText.c grCMap.c grClip.c \
|
|
grGlyphs.c grNull.c
|
|
X11_SRCS = grX11su1.c grX11su2.c grX11su3.c grX11su4.c grX11su5.c
|
|
TK_SRCS = grTk1.c grTk2.c grTk3.c grTk4.c grTk5.c
|
|
TOGL_GL_SRCS = grTOGL1.c grTOGL2.c grTOGL4.c grTOGL5.c
|
|
TOGL_GLU_SRCS = grTOGL3.c
|
|
THREE_D_GL_SRCS = W3Dmain.c
|
|
OGL_GL_SRCS = grOGL1.c grOGL2.c grOGL4.c grOGL5.c
|
|
OGL_GLU_SRCS = grOGL3.c
|
|
TCAIRO_SRCS = grTCairo1.c grTCairo2.c grTCairo3.c grTCairo4.c grTCairo5.c
|
|
|
|
GLYPHS = bw.glyphs color.glyphs
|
|
OUTLINE_FONTS = FreeSerif.pt3 FreeSans.pt3 FreeMono.pt3
|
|
|
|
TKCOMMON_SRCS = grTkCommon.c
|
|
X11THREAD_SRCS = grX11thread.c
|
|
X11HELPER_SRCS = X11Helper.c
|
|
X11HELP_PROG = XHelper7
|
|
|
|
# Sets ${GR_SRCS} to one or more of the above
|
|
include ${MAGICDIR}/defs.mak
|
|
|
|
SRCS = ${BASE_SRCS} ${GR_SRCS}
|
|
# Note GR_SRCS is from defs.mak
|
|
OBJS = ${BASE_SRCS:.c=.o} ${GR_SRCS:.c=.o}
|
|
CFLAGS += ${GR_CFLAGS}
|
|
DFLAGS += ${GR_DFLAGS}
|
|
CLEANS += ${GR_HELPER_PROG} *.o
|
|
LIBS += ${GR_LIBS}
|
|
|
|
main: ${GR_HELPER_PROG}
|
|
|
|
${GR_HELPER_PROG}: ${GR_HELPER_SRCS}
|
|
@echo --- building main ${GR_HELPER_PROG}
|
|
${RM} ${GR_HELPER_PROG}
|
|
${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} $(addprefix $(srcdir)/,${GR_HELPER_SRCS}) \
|
|
-o ${GR_HELPER_PROG} ${LIBS}
|
|
|
|
install: $(DESTDIR)${INSTALL_BINDIR}/${GR_HELPER_PROG} glyphs fonts
|
|
|
|
install-tcl: glyphs fonts
|
|
|
|
$(DESTDIR)${INSTALL_BINDIR}/${GR_HELPER_PROG}: ${GR_HELPER_PROG}
|
|
${RM} $(DESTDIR)${INSTALL_BINDIR}/${GR_HELPER_PROG}
|
|
${CP} ${GR_HELPER_PROG} $(DESTDIR)${INSTALL_BINDIR}
|
|
|
|
glyphs: ${GLYPHS}
|
|
for i in ${GLYPHS}; do \
|
|
${RM} $(DESTDIR)${INSTALL_SYSDIR}/$$i; \
|
|
${CP} $(srcdir)/$$i $(DESTDIR)${INSTALL_SYSDIR}; done
|
|
|
|
fonts: ${OUTLINE_FONTS}
|
|
for i in ${OUTLINE_FONTS}; do \
|
|
${RM} $(DESTDIR)${INSTALL_SYSDIR}/$$i; \
|
|
${CP} $(srcdir)/$$i $(DESTDIR)${INSTALL_SYSDIR}; done
|
|
|
|
include ${MAGICSRC}/rules.mak
|