Liang Chang added utempter support to the dtterm widget in pre-autoconf CDE. While the code itself was merged, it was still not "turned on" for autoconf builds. This commit completes the implementation allowing dtterm on Linux and the BSDs to be installed without having to be setuid root -- as long as the libutempter headers and libraries are installed.
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
bin_PROGRAMS = dtterm
|
|
|
|
dtterm_LDADD = $(LIBTERM) $(DTCLIENTLIBS) $(XTOOLLIB)
|
|
|
|
if BSD
|
|
dtterm_LDADD += -lutil
|
|
endif
|
|
|
|
if HAS_UTEMPTER_LIBRARY
|
|
dtterm_LDADD += -lutempter
|
|
endif
|
|
|
|
dtterm_CFLAGS = -I$(top_builddir)/lib/DtTerm/TermPrim \
|
|
-I$(top_builddir)/lib/DtTerm/Term \
|
|
-I$(top_builddir)/lib/DtTerm/TermView \
|
|
$(DT_INCDIR) \
|
|
-DSUN_TERMINAL_SERVER
|
|
|
|
dtterm_SOURCES = DtTermLogit.c DtTermMain.c DtTermFallBackResources.c \
|
|
sunDtTermServer.c DtTermSyntax.c DtTermLogit.h \
|
|
DtTermMain.h DtTermServer.h DtTermSyntax.h
|
|
|
|
CPP_TARGETS = dtterm.ti DtTermFallBackResources.c.src \
|
|
DtTermFallBackResources.c Dtterm.ad
|
|
|
|
BUILT_SOURCES = $(CPP_TARGETS)
|
|
CLEANFILES = $(CPP_TARGETS)
|
|
|
|
cfgdir = $(CDE_INSTALLATION_TOP)/config
|
|
dist_cfg_DATA = dtterm.ti
|
|
|
|
Dtterm.ad: Dtterm.ad.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $< > $@
|
|
|
|
DtTermFallBackResources.c.src: Dtterm.ad.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# -DFALLBACK_RESOURCES $< > $@
|
|
|
|
DtTermFallBackResources.c: DtTermFallBackResources.c.src
|
|
$(RM) $@
|
|
./mkfallbk < DtTermFallBackResources.c.src > $@
|
|
|
|
dtterm.ti: terminfoChecklist
|
|
$(RM) $@
|
|
CPP="$(GENCPP)" $(SHELL) terminfoCreate < terminfoChecklist > $@
|
|
|
|
install-exec-hook:
|
|
chown root $(DESTDIR)$(bindir)/dtterm
|
|
if !HAS_UTEMPTER_LIBRARY
|
|
chmod 4755 $(DESTDIR)$(bindir)/dtterm
|
|
endif
|
|
|