Files
mcde/programs/dtfile/Makefile.am
T
lotherkandClaude Opus 5.5 6de349e604 mcde: dtfile: Network, a browser for the computers around
"Network" in the sidebar shows, in place of the work area: the
computers that announce themselves by DNS-SD (McdeSys), what the chosen
one offers -- its files by SFTP, a terminal by SSH, its NFS exports, its
SMB shares (listed; NetBSD has no SMB client that mounts) -- and
"Connect to Server:" for sftp://, nfs:// and afp:// addresses.  A share
is mounted on ~/Network/HOST[/NAME] and opened in the window; a server
that wants a password gets a dialog whose field shows stars, and the
mount is tried again with it.  Finding takes a few seconds and runs once
the view is drawn; going to any folder leaves the view.

Measured on Xvfb (build/mcde-shots/df-*.png): Network found the 4
computers of the LAN, by the names they give; KITT listed its SMB share
"nobody"; Connect to sftp://localhost without a key asked for the
password (nothing mounted).  Through McdeSys on the host:
sftp://127.0.0.1/.../www mounted with the user's key, its files were
there, and it was unmounted again.  Not measured: NFS and AFP mounts,
and anything of this on NetBSD past the build (no LAN in the VM).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:54:19 +00:00

61 lines
1.7 KiB
Makefile

configdir = $(CDE_INSTALLATION_TOP)/config/C
SUBDIRS = dtcopy
bin_PROGRAMS = dtfile
BUILT_SOURCES = dtfile.config dtfile_error
CLEANFILES = dtfile.config dtfile_error
dist_config_DATA = dtfile.config
dist_bin_SCRIPTS = dtfile_error dterror.ds
dtfile_CPPFLAGS = -I./dtcopy -DSHAPE -D_ILS_MACROS -DSUN_PERF \
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
dtfile_LDADD = dtcopy/sharedFuncs.o \
dtcopy/fsrtns.o \
$(LIBMCDESYS) $(DTCLIENTLIBS) $(TIRPCLIB) $(XTOOLLIB)
if OPENBSD
dtfile_CPPFLAGS += -DFILE_MAP_OPTIMIZE
endif
if LINUX
dtfile_CPPFLAGS += -DFILE_MAP_OPTIMIZE
endif
if SOLARIS
dtfile_LDADD += -lintl -lresolv
endif
dtfile_SOURCES = ChangeDir.c ChangeDirP.c Command.c Common.c \
Desktop.c Directory.c Encaps.c File.c \
FileDialog.c FileManip.c FileMgr.c FileOp.c \
Filter.c FilterP.c Find.c FindP.c \
Help.c HelpCB.c HelpP.c IconWindow.c \
IconicPath.c Main.c Menu.c MkDir.c \
ModAttr.c ModAttrP.c MultiView.c OverWrite.c \
Prefs.c PrefsP.c SharedMsgs.c SharedProcs.c \
ToolTalk.c Trash.c Utils.c fsDialog.c \
Navigation.c Columns.c NetView.c
# Mind the quoting here...
SCRIPTFLAGS = -DSHAPE -D_ILS_MACROS -DSUN_PERF \
-DCDE_INSTALLATION_TOP="$(CDE_INSTALLATION_TOP)" \
-DCDE_CONFIGURATION_TOP="$(CDE_CONFIGURATION_TOP)"
dtfile.config: dtfile.config.cpp
$(RM) $@
$(GENCPP) -P -DXCOMM=# $(SCRIPTFLAGS) $< > $@
dtfile_error: dtfile_error.cpp
$(RM) $@
$(GENCPP) -P -DXCOMM=# $(SCRIPTFLAGS) $< > $@
dterror.ds: dterror.src
$(RM) $@
$(GENCPP) -P -DXCOMM=# $(SCRIPTFLAGS) $< > $@