dtcm: make it build

This commit is contained in:
Jon Trulson
2019-11-20 15:33:17 -07:00
parent 763cac54e4
commit 444aa700c0
7 changed files with 115 additions and 132 deletions

View File

@@ -1,22 +1,21 @@
MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = y.tab.c getdate.c
noinst_LIBRARIES = libDtCmP.a
libDtCmP_a_CFLAGS = -I../../../lib/csa -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N \
$(TIRPCINC)
libDtCmP_a_CFLAGS = $(CSA_INCDIR) -I../../../lib/csa -DRFC_MIME \
-DLINE_COUNT -DV2 -DOW_I18N $(TIRPCINC)
if SOLARIS
libDtCmP_a_CFLAGS += -xstrconst -Xc -v
endif
libDtCmP_a_SOURCES = cm_tty.c cmfns.c dtfns.c \
getdate.c props.c resource.c \
timeops.c util.c
libDtCmP_a_SOURCES = cm_tty.c cmfns.c dtfns.c props.c resource.c \
timeops.c util.c getdate.y
all:: getdate.c
getdate.c: getdate.y
$(YACC) getdate.y
$(MV) y.tab.c getdate.c
# This is strange - ususally you generate a .h and a .c. But CDE
# comes with getdate.h, and you cannot generate it via yacc/lex. So -
# someday this should be redone properly... see
# https://opensource.apple.com/source/shell_cmds/shell_cmds-198/find/getdate.y.auto.html
# for what seems like a more recent version...
BUILT_SOURCES = getdate.c
CLEANFILES = $(BUILT_SOURCES)