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

dtspcd: make it build

This commit is contained in:
Jon Trulson 2019-11-19 19:43:34 -07:00
parent a8085dca9b
commit e675e06dd1
2 changed files with 20 additions and 18 deletions

View file

@ -406,6 +406,8 @@ programs/dtcalc/Makefile
programs/dtaction/Makefile
programs/dtspcd/Makefile
])
AC_OUTPUT

View file

@ -1,31 +1,31 @@
configdir = ${prefix}/config
MAITAINERCLEANFILES = Makefile.in
bin_PROGRAMS = dtspcd
config_PROGRAMS = dtspcdenv
dtspcd_CFLAGS = $(TIRPCINC) -DCDE_CONFIGURATION_TOP=\"${prefix}\" \
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
-I$(top_builddir)/include/Dt
dtspcd_CFLAGS = $(TIRPCINC) -I../dthelp -DCDE_CONFIGURATION_TOP=\"${prefix}\" \
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\"
dtspcd_LDADD = $(LIBHELP) $(LIBSVC) $(LIBTT) -lXm $(XTOOLLIB) ${X_LIBS} -lm
dtspcd_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
if SOLARIS
dtspcd_LDADD += -ldl -lgen
endif
if HPUX
dtspcd_CFLAGS += -D_XOPEN_SOURCE -D__hpux_8_0 -DFUNCPROTO
endif
dtspcdenv_CPPFLAGS = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
-DCDE_INSTALLATION_TOP=${prefix} \
-DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) \
-DDEF_SYSTEM_PATH=$(PATH)
# I really think we should get rid of dtspcd in general...
dtspcd_SOURCES = main.c spcd_event.c
CPPTARGET = dtspcdenv
CPPSRC = dtspcdenv.src
include $(srcdir)/include/cppfile.tmpl
DEF_SYSTEM_PATH = "/bin:/usr/bin"
LOCAL_CPP_DEFINES = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
-DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) \
-DDEF_SYSTEM_PATH=$(DEF_SYSTEM_PATH)
CPP_TARGETS = dtspcdenv
BUILT_SOURCES = $(CPP_TARGETS)
CLEANFILES = $(CPP_TARGETS)
dtspcdenv: dtspcdenv.src
$(RM) $@
$(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@