dist_xsession_SCRIPTS = 0020.dtims
-0020.dtims_CPPFLAGS = -P
+dtimsstart_CFLAGS = -DNLS
-dtimsstart_CFLAGS = -DNLS -I../../lib
-
-dtimsstart_LDADD = $(LIBHELP) $(LIBSVC) $(LIBTT) -lXm $(XTOOLLIB) ${X_LIBS}
+dtimsstart_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
if SOLARIS
dtimsstart_CFLAGS += -xF
endif
-if AIX
-dtimsstart_CFLAGS += -DANSICPP
-endif
+dtimsstart_SOURCES = action.c env.c file.c main.c remote.c select.c \
+ start.c util.c win.c ximserr.h ximsfunc.h xims.h \
+ ximspath.h
+
+BUILT_SOURCES = 0020.dtims
+CLEANFILE = $(BUILT_SOURCES)
-all: 0020.dtims
+LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
+ -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
+ -DKORNSHELL=$(KSH)
-dtimsstart_SOURCES = action.c env.c file.c \
- main.c remote.c select.c \
- start.c util.c
+0020.dtims: 0020.dtims.src
+ $(RM) $@
+ $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
-CPPSRC = 0020.dtims.src
-CPPTARGET = 0020.dtims
-include $(srcdir)/include/cppfile.tmpl
#include "xims.h"
+int find_CDE_locale_name(void); /* from util.c */
+
typedef enum {
P_Shell, /* posix shell */
K_Shell, /* Korn shell */
/* @(#)$XConsortium: util.c /main/6 1996/07/12 15:44:21 pascale $ */
#include <time.h>
-#include <DtHelp/LocaleXlate.h> /* for locale equivalence between platforms */
+#include <ctype.h>
+#include <Dt/LocaleXlate.h> /* for locale equivalence between platforms */
#include "xims.h"
#include <sys/stat.h>