view anagram/agcore/DEFS.mk @ 14:a02e9434072e

Fix friend declaration for gcc10. XXX: did not check it against the IBM compiler, might end up needing XXX: to be conditional.
author David A. Holland
date Tue, 31 May 2022 00:59:42 -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