dtcm: make it build
[oweals/cde.git] / cde / programs / dtcm / libDtCmP / Makefile.am
index 13481516fb69d4ebcc78f5f511f0dfb13767d19c..21e559990860716cc580774edba3d375fbd78820 100644 (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
-
-all:: getdate.c
+libDtCmP_a_SOURCES = cm_tty.c cmfns.c dtfns.c props.c resource.c       \
+                    timeops.c util.c getdate.y
 
-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)