############################################################################## # # # LLNL XDIR's makefile (to be used if you just can't get Imake to work). # # # # Uncomment the section that looks most promising. You will probably # # need to reassign INCLUDE_DIRS and LIB_DIRS. # # # # See "SOCKS SUPPORT" section below if you wish to SOCKSify LLNL XDIR. # # # ############################################################################## # # SPARCstation SunOS # #CC = cc #CFLAGS = -g #INCLUDE_DIRS = -I/usr/include/X11 #LIBS = -lXm -lXt -lX11 #LIB_DIRS = # # SPARCstation SunOS (using gcc) # #CC = gcc #CFLAGS = -fpcc-struct-return -Wall -pipe -Wno-implicit -Wno-return-type #INCLUDE_DIRS = -I/usr/include/X11 #LIBS = -lXm -lXt -lX11 #LIB_DIRS = # # HP-UX (First of two) # #CC = cc #CFLAGS = -s -O -DSYSV #INCLUDE_DIRS = -I/usr/include/Motif1.2 -I/usr/include/X11R5 #LIBS = -lXm -lXt -lX11 #LIB_DIRS = -L/usr/lib/Motif1.2 -L/usr/lib/X11R5 # # HP-UX (Second of two) # #CC = cc #CFLAGS = -s +O3 -DSYSV -Aa -D_HPUX_SOURCE #INCLUDE_DIRS = -I/usr/include/Motif1.2 -I/usr/include/X11R5 #LIBS = -lXm -lXt -lX11 #LIB_DIRS = -L/usr/lib/Motif1.2 -L/usr/lib/X11R5 # # IBM AIX # #CC = cc #CFLAGS = -g -DSYSV #INCLUDE_DIRS = -I/usr/include #LIBS = -lXm -lXt -lX11 #LIB_DIRS = -L/usr/lib # # Alpha Digital Unix # #CC = cc #CFLAGS = -g #INCLUDE_DIRS = -I/usr/include #LIBS = -lXm -lXt -lX11 #LIB_DIRS = -L/usr/lib/X11 # # DECstation Ultrix # #CC = cc #CFLAGS = -g #INCLUDE_DIRS = -I/usr/local/include #LIBS = -lXm -lXt -lX11 #LIB_DIRS = -L/usr/local/lib/X11 # # Cray Unicos # #CC = cc #CFLAGS = -g -DSYSV #INCLUDE_DIRS = -I/usr/include #LIBS = -lXm -lXt -lX11 #LIB_DIRS = -L/usr/lib # # Cray Unicos (using HIPPI channel) # #CC = cc #CFLAGS = -g -DSYSV -DHIPPI #INCLUDE_DIRS = -I/usr/include #LIBS = -lXm -lXt -lX11 #LIB_DIRS = -L/usr/lib # # Cray Unicos (J90) # #BASE = /opt/ctl/cvt/cvt #CC = cc #CFLAGS = -g -DSYSV #INCLUDE_DIRS = -I$(BASE)/include #LIBS = -lXm -lXt -lX11 -lICE -lSM #LIB_DIRS = -L$(BASE)/lib # # Cray Unicos (J90 using HIPPI channel) # #BASE = /opt/ctl/cvt/cvt #CC = cc #CFLAGS = -g -DSYSV -DHIPPI #INCLUDE_DIRS = -I$(BASE)/include #LIBS = -lXm -lXt -lX11 -lICE -lSM #LIB_DIRS = -L$(BASE)/lib # # IRIX 4.x (linking with libsun.a for Sun's NIS distributed lookup service) # #CC = cc #CFLAGS = -g -DSYSV #INCLUDE_DIRS = -I/usr/include #LIBS = -lXm -lXt -lX11 -lsun -lPW #LIB_DIRS = -L/usr/lib # # IRIX 5.x # #CC = cc #CFLAGS = -g -DSYSV #INCLUDE_DIRS = -I/usr/include #LIBS = -lXm -lXt -lX11 -lsun #LIB_DIRS = -L/usr/lib # # IRIX 6.x # #CC = cc #CFLAGS = -g -DSYSV #INCLUDE_DIRS = -I/usr/include #LIBS = -lXm -lXt -lX11 # # Solaris # #CC = cc #CFLAGS = -g -DSYSV #INCLUDE_DIRS = -I/usr/dt/include -I/usr/openwin/include #LIBS = -lXm -lXt -lX11 -lsocket -lnsl #LIB_DIRS = -L/usr/dt/lib -R/usr/dt/lib -L/usr/openwin/lib -R/usr/openwin/lib # # Sun Solaris (using gcc) # #CC = gcc #CFLAGS = -fpcc-struct-return -Wall -pipe -Wno-implicit -Wno-return-type -DSYSV #INCLUDE_DIRS = -I/usr/dt/include -I/usr/openwin/include #LIBS = -lXm -lXt -lX11 -lsocket -lnsl -lgen #LIB_DIRS = -L/usr/dt/lib -R/usr/dt/lib -L/usr/openwin/lib -R/usr/openwin/lib # # System V/386 Release 4.0 # #CC = cc #CFLAGS = -g -D_NO_PROTO -DSYSV #INCLUDE_DIRS = -I/usr/include/X11 #LIBS = -lXm -lXt -lX11 -lbsd -lsocket -lnsl -lgen #LIB_DIRS = # # USL UnixWare 1.x # #CC = cc #CFLAGS = -g -U__STR__ -DSYSV -DUNIXWARE #INCLUDE_DIRS = -I/usr/X/include #LIBS = -L/usr/X/lib -lXm -lgen -lXIM -lXt -lX11 -lnsl -lsocket #LIB_DIRS = -L/usr/lib # # USL UnixWare 2.x # #CC = cc #CFLAGS = -g -U__STR__ -DSYSV -DUNIXWARE #INCLUDE_DIRS = -I/usr/X/include #LIBS = -L/usr/X/lib -lXm -lgen -lXt -lX11 -lnsl -lsocket #LIB_DIRS = -L/usr/lib # # 80486 running SVR4.2 from Univel # #CC = cc #CFLAGS = -g -D_NO_PROTO -DSYSV #INCLUDE_DIRS = -I/usr/include #LIBS = -lXm -lXt -lX11 -lsocket -lnsl -lc -lm -lgen /usr/ucblib/libucb.a #LIB_DIRS = -L/usr/lib/X11 # # CONVEX # #CC = cc #CFLAGS = -g -D__STDC__ #INCLUDE_DIRS = -I/usr/include -I/usr/include/X11 #LIBS = -lXm -lXt -lX11 #LIB_DIRS = # # BSD/386 1.0 on Intel # #CC = cc #CFLAGS = -O #INCLUDE_DIRS = -I/usr/X11/include #LIBS = -lXm -lXt -lX11 -lcompat #LIB_DIRS = -L/usr/X11/lib # # Sunsoft ISC Unix 4.0 on Intel using gcc and XFree # #CC = gcc #CFLAGS = -O2 -m486 -DNO_ASM -fpcc-struct-return -fwritable-strings -DISC -DISC30 -DSYSV -DSYSV386 -D_POSIX_SOURCE -D_XOPEN_SOURCE #INCLUDE_DIRS = -I/usr/X386/include #LIBS = -lXm -lXt_s -lXext_s -lX11s -linet -lpt -lc_s -lcposix #LIB_DIRS = -L/usr/X386/lib # # Intel Paragon # #CC = cc #CFLAGS = -g #INCLUDE_DIRS = -I/usr/include/X11 #LIBS = -lXm -lXt -lX11 -lbsd -lPW #LIB_DIRS = # # SunOS/Kerberos # #CC = /usr/lang/acc #INCLUDE_DIRS = -I/usr/local/questwin/include/X11 -I/usr/local/questwin/include -I/k5/esnet/src/include -I/usr/local/include #LIB_DIRS = -L/usr/local/questwin/lib/X11 -L/usr/local/krb5/lib -L/usr/local/lib #CFLAGS = -g -DLLNL -DKERBEROS -Xt #LIBS = -lXm -lXt -lX11 -lkrb5 -lcrypto -lisode -lcom_err # # Apollo running /bsd4.3/bin/csh (using UEDK 2.0 & X11R5) # #CC = cc #CFLAGS = -DSYSV -D_APOLLO_SOURCE -A sys,any -A run,bsd4.3 #INCLUDE_DIRS = -I/usr/include/X11 #LIBS = -lXm -lXt -lX11 #LIB_DIRS = -L/usr/lib/X11 ############################################################################# # # # SOCKS SUPPORT # # # # LLNL XDIR can be built to utilize the SOCKS firewall package, but # # we make no guarantees. Use no SOCKS library earlier than version # # 4.2, and make sure that the library is built with -DSHORTENED_RBIND. # # The SOCKS distribution can be obtained from # # # # http://www.socks.nec.com/index.html # # # ############################################################################# SOCKS_FLAGS = SOCKS_LIBS = # # To SOCKSify LLNL XDIR using SOCKS V4, uncomment these lines: # #SOCKS_FLAGS = -DSOCKS \ # -Dconnect=Rconnect \ # -Dgetsockname=Rgetsockname \ # -Dgetpeername=Rgetpeername \ # -Dbind=Rbind \ # -Daccept=Raccept \ # -Dlisten=Rlisten \ # -Dselect=Rselect #SOCKS_LIBS = -lsocks # # To SOCKSify LLNL XDIR using SOCKS5, uncomment these lines: # #SOCKS_FLAGS = -DSOCKS \ # -Dconnect=SOCKSconnect \ # -Dgetsockname=SOCKSgetsockname \ # -Dgetpeername=SOCKSgetpeername \ # -Dbind=SOCKSbind \ # -Daccept=SOCKSaccept \ # -Dlisten=SOCKSlisten \ # -Dselect=SOCKSselect \ # -Drecvfrom=SOCKSrecvfrom \ # -Dsendto=SOCKSsendto \ # -Drecv=SOCKSrecv \ # -Dsend=SOCKSsend \ # -Dread=SOCKSread \ # -Dwrite=SOCKSwrite \ # -Drresvport=SOCKSrresvport \ # -Dshutdown=SOCKSshutdown \ # -Dclose=SOCKSclose \ # -Ddup=SOCKSdup \ # -Ddup2=SOCKSdup2 \ # -Dfclose=SOCKSfclose \ # -Dgethostbyname=SOCKSgethostbyname #SOCKS_LIBS = -lsocks5 ############################################################################# # # Set the following five lines to appropriate values (e.g., you might want # to set MANSUFFIX to "1" for HP-UX platforms). # BINDIR = /usr/local/bin/X11 MANDIR = /usr/local/man MANSUFFIX = n INSTALLED_MAN = $(MANDIR)/man$(MANSUFFIX)/xdir.$(MANSUFFIX) INSTALLED_APPDEFS = /usr/lib/X11/app-defaults/XDir INCLUDES = buttons.h cachemsg.h entries.h errorflag.h \ gprefs.h gprefsmsg.h history.h list.h \ llnl.h logo50.h logo64.h okflag.h \ pixmaps.h pulldown.h resources.h startup.h \ str.h treectrls.h urbutton.h view.h \ xdir.h xfer.h SOURCES = account.c aconnect.c arconnect.c buttons.c \ cache.c cmds.c color.c controls.c \ ctrlconn.c cursor.c dataconn.c delete.c \ diag.c dialogs.c dirwin1.c dirwin2.c \ dirwin3.c draw.c execute.c fallbacks.c \ force.c fprefs.c geometry.c get.c \ goto.c gprefs1.c gprefs2.c gprefs3.c \ graphics.c hedit.c help.c history.c \ icon.c keyboard.c launch.c lconnect.c \ lcopy.c local.c lost.c list.c \ lprefs.c ls.c mainhelp.c match.c \ misc.c mkdir.c mouse.c move.c \ mpmonitor.c outlines.c parse.c password.c \ path.c pixmaps.c prefs.c pulldown.c \ put.c qsort.c quoted.c rconnect.c \ rcopy.c remote.c rename.c resources.c \ scrolling.c search.c server.c smonitor.c \ startup.c system.c toggle.c tree.c \ urbutton.c verify.c view1.c view2.c \ view3.c view4.c vprefs.c wildcard.c \ wins.c xdir.c xfer1.c xfer2.c \ xfer3.c xfer4.c xfermon.c OBJECTS = account.o aconnect.o arconnect.o buttons.o \ cache.o cmds.o color.o controls.o \ ctrlconn.o cursor.o dataconn.o delete.o \ diag.o dialogs.o dirwin1.o dirwin2.o \ dirwin3.o draw.o execute.o fallbacks.o \ force.o fprefs.o geometry.o get.o \ goto.o gprefs1.o gprefs2.o gprefs3.o \ graphics.o hedit.o help.o history.o \ icon.o keyboard.o launch.o lconnect.o \ lcopy.o local.o lost.o list.o \ lprefs.o ls.o mainhelp.o match.o \ misc.o mkdir.o mouse.o move.o \ mpmonitor.o outlines.o parse.o password.o \ path.o pixmaps.o prefs.o pulldown.o \ put.o qsort.o quoted.o rconnect.o \ rcopy.o remote.o rename.o resources.o \ scrolling.o search.o server.o smonitor.o \ startup.o system.o toggle.o tree.o \ urbutton.o verify.o view1.o view2.o \ view3.o view4.o vprefs.o wildcard.o \ wins.o xdir.o xfer1.o xfer2.o \ xfer3.o xfer4.o xfermon.o AUXFILES = BUGS CHANGES Imakefile NEW_FEATURES\ README XDir disclaimer makedist \ tmac.an xdir.n xdir: ${OBJECTS} ${CC} ${CFLAGS} -o xdir ${OBJECTS} ${LIB_DIRS} ${LIBS} ${SOCKS_LIBS} .c.o: ${CC} ${CFLAGS} ${SOCKS_FLAGS} ${INCLUDE_DIRS} -c $< sources: ${SOURCES} ${INCLUDES} XDir clean: rm -f ${OBJECTS} xdir core getall: sccs get ${SOURCES} ${INCLUDES} ${AUXFILES} install: -cp xdir $(BINDIR) -strip $(BINDIR)/xdir -cp XDir.ad $(INSTALLED_APPDEFS) -chmod a+r $(INSTALLED_APPDEFS) install.man: -cp xdir.man $(INSTALLED_MAN) -chmod a+r $(INSTALLED_MAN) account.o: xdir.h aconnect.o: history.h list.h str.h xdir.h arconnect.o: list.h str.h xdir.h buttons.o: buttons.h xdir.h cache.o: list.h xdir.h cmds.o: str.h xdir.h controls.o: xdir.h ctrlconn.o: str.h xdir.h dataconn.o: xdir.h delete.o: list.h str.h xdir.h diag.o: errorflag.h okflag.h pixmaps.h str.h xdir.h dialogs.o: xdir.h dirwin1.o: cachemsg.h llnl.h pulldown.h xdir.h dirwin2.o: list.h xdir.h dirwin3.o: history.h list.h resources.h xdir.h draw.o: resources.h xdir.h fprefs.o: list.h str.h geometry.o: xdir.h get.o: list.h str.h xdir.h xfer.h goto.o: history.h list.h str.h xdir.h gprefs1.o: gprefs.h history.h str.h view.h xdir.h gprefs2.o: gprefs.h gprefsmsg.h gprefs3.o: gprefs.h graphics.o: entries.h resources.h treectrls.h xdir.h hedit.o: history.h xdir.h help.o: xdir.h history.o: history.h list.h str.h xdir.h icon.o: logo50.h logo64.h keyboard.o: xdir.h launch.o: list.h str.h xdir.h lconnect.o: list.h xdir.h lcopy.o: list.h xdir.h xfer.h list.o: list.h local.o: xdir.h lost.o: xdir.h lprefs.o: list.h str.h ls.o: list.h str.h xdir.h mainhelp.o: xdir.h misc.o: history.h list.h str.h xdir.h mkdir.o: str.h xdir.h mouse.o: list.h xdir.h move.o: list.h xdir.h mpmonitor.o: xdir.h outlines.o: xdir.h parse.o: str.h xdir.h password.o: str.h xdir.h path.o: str.h xdir.h pixmaps.o: pixmaps.h prefs.o: xdir.h pulldown.o: pulldown.h put.o: list.h xdir.h xfer.h quoted.o: history.h list.h str.h xdir.h rconnect.o: history.h list.h str.h xdir.h rcopy.o: list.h str.h xdir.h xfer.h remote.o: str.h xdir.h rename.o: list.h str.h xdir.h resources.o: resources.h scrolling.o: xdir.h search.o: list.h str.h xdir.h server.o: str.h xdir.h smonitor.o: xdir.h startup.o: startup.h xdir.h toggle.o: xdir.h tree.o: list.h resources.h xdir.h urbutton.o: urbutton.h xdir.h verify.o: xdir.h view1.o: list.h str.h xdir.h xfer.h view2.o: list.h pulldown.h str.h view.h xdir.h xfer.h view3.o: xdir.h view4.o: str.h view.h xdir.h vprefs.o: list.h str.h wildcard.o: history.h list.h str.h xdir.h wins.o: history.h list.h xdir.h xdir.o: xdir.h xfer1.o: list.h str.h xfer.h xdir.h xfer2.o: list.h str.h xfer.h xdir.h xfer3.o: list.h xfer.h xdir.h xfer4.o: list.h str.h xfer.h xdir.h xfermon.o: xdir.h