Mercurial > ~dholland > hg > ag > index.cgi
view anagram/agcore/DEFS.mk @ 7:57b2cc9b87f7
Use memcpy instead of strncpy when we know the length anyway.
Modern gcc seems to think it knows how to detect misuse of strncpy,
but it's wrong (in fact: very, very wrong) and the path of least
resistance is to not try to fight with it.
author | David A. Holland |
---|---|
date | Mon, 30 May 2022 23:47:52 -0400 |
parents | 13d2b8934445 |
children |
line wrap: on
line source
include $(BUILDTOP)/config.mk SYNS=cf.syn pgg24.syn sums.syn CGBIGEN=$(BUILDTOP)/cgbigen/cgbigen$(HOST_EXEEXT) # Sources. SRCS=\ arrays.cpp \ binsort.cpp \ bpe3.cpp \ bpu.cpp \ cd.cpp \ cf.cpp \ checksum.cpp \ config.cpp \ configparam.cpp \ coreinst.cpp \ cra.cpp \ cs.cpp \ csexp.cpp \ data.cpp \ dict.cpp \ engdef.cpp \ error.cpp \ ftpar.cpp \ keyword.cpp \ lexeme.cpp \ nckwtr.cpp \ operations.cpp \ p.cpp \ pgg24.cpp \ q1a.cpp \ q1glbl.cpp \ q5.cpp \ q8.cpp \ rpk.cpp \ rpz.cpp \ rule.cpp \ search.cpp \ stacks.cpp \ sums.cpp \ symbol.cpp \ textfile.cpp \ token.cpp \ tree.cpp \ tsd.cpp \ ut.cpp LIB=agcore LIBTYPE=LIB # This should not be necessary (XXX) INCDIRS.nogui= INCDIRS.hasgui=$(TOP)/anagram/guisupport INCDIRS=. $(TOP)/anagram/support $(TOP)/anagram/agcore $(TOP)/anagram/ag1 \ $(INCDIRS.$(HASGUI)) include $(TOP)/mk/lib.mk beforeall: engine.h engine.h: $(SRCDIR)/engine.cgs $(CGBIGEN) @echo ' [CGBIGEN] engine.cgs' @$(CGBIGEN) $(SRCDIR)/engine.cgs engine.h clean distclean: engclean engclean: @echo ' [RM] engine.h' @rm -f engine.h .PHONY: beforeall clean distclean engclean