1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Re-fix tt_type_comp -- it doesn't actually need yacc/lex

This commit is contained in:
Jon Trulson 2019-10-25 10:43:05 -06:00
parent 9182ddfcc3
commit 7c2983185d

View file

@ -2,28 +2,20 @@ MAINTAINERCLEANFILES = Makefile.in
include ../../tooltalk.inc include ../../tooltalk.inc
# JET - this is kind of hacky - we need to have ylwrap compile as C++ BUILT_SOURCES = mp_types_gram.h
# not C, but the default lex/yac suffices are /l and .y, which means CLEANFILES = mp_types_gram.h
# C. So we "fix" that.
BUILT_SOURCES = mp_types_lex.L mp_types_gram.Y mp_types_gram.h:
CLEANFILES = mp_types_lex.L mp_types_gram.Y $(RM) mp_types_gram.h
mp_types_lex.L: $(LN_S) frozen.mp_types_gram.h mp_types_gram.h
$(LN_S) mp_types_lex.l mp_types_lex.L
mp_types_gram.Y:
$(LN_S) mp_types_gram.y mp_types_gram.Y
AM_YFLAGS = -d
bin_PROGRAMS = tt_type_comp bin_PROGRAMS = tt_type_comp
tt_type_comp_CXXFLAGS = $(TIRPCINC) -I../../lib -I../../slib \ tt_type_comp_CXXFLAGS = $(TIRPCINC) -I../../lib -I../../slib \
$(TT_VERSION_DEFINE) -I../../lib $(TT_VERSION_DEFINE)
tt_type_comp_SOURCES = mp_type_comp.C mp_types_table.C \ tt_type_comp_SOURCES = mp_type_comp.C mp_types_table.C \
frozen.mp_types_lex.C frozen.mp_types_gram.C \ frozen.mp_types_lex.C frozen.mp_types_gram.C
mp_types_lex.L mp_types_gram.Y
tt_type_comp_LDADD = @LIBTT@ $(X_LIBS) ../../slib/libstt.a tt_type_comp_LDADD = @LIBTT@ $(X_LIBS) ../../slib/libstt.a
@ -39,3 +31,4 @@ if OPENBSD
tt_type_comp_LDADD += $(XTOOLLIB) tt_type_comp_LDADD += $(XTOOLLIB)
endif endif
frozen.mp_types_lex.o: frozen.mp_types_gram.h