home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
OS9_Unix.lzh
/
RSHSRC
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-10-08
|
2KB
|
70 lines
RDIR= .
ODIR= /h0/local/cmds
IDIR= ../defs
NLDIR= /h0/isp/lib
CFLAGS= -k=2f -i -v=$(IDIR) -v=/h0/isp/defs
LFLAGS= -l=unet.l -l=$(NLDIR)/netdb.l -l=$(NLDIR)/socklib.l
#
# Define the library contents. UOBJS are my modified versions of standard
# stuff. BLAROBJS are straight from blarslib. NOBJS are the network routines
#
UOBJS= _open.r dup2.r getpw.r getppid.r isatty.r \
stat.r strerror.r utime.r
BLARSOBJS= bstring.r exec.r getopt.r \
mkdir.r strtok.r perror.r umask.r
NOBJS= tcpopen.r rcmd.r rresvport.r ruserok.r io.r g_hostname.r set_block.r
#
# For convenience group some of the utility files in macros
#
LPROBJS= lpr.r printbsd.r seqno.r
RSHDOBJS= rshd.r doit.r
#
# Do the business....
#
all: unet.l lpr rsh rshd rshdc rcp rmt
@echo "Because the executables (other than rmt) have to do a setuid to";\
echo "become super-user you should make them to be owned by root (0.0)"
# remote line printer client
lpr: $(LPROBJS) unet.l
cc $(CFLAGS) $(LPROBJS) $(LFLAGS) -f=$(ODIR)/lpr
printbsd.r: printbsd.c
cc $(CFLAGS) -v=$(IDIR) printbsd.c -r=$(RDIR)
#remote shell client
rsh: rsh.r unet.l
cc $(CFLAGS) rsh.r $(LFLAGS) -f=$(ODIR)/rsh
rsh.r: rsh.c
cc $(CFLAGS) -v=$(IDIR) rsh.c -r=$(RDIR)
#remote shell server
rshd: $(RSHDOBJS) unet.l rshd.h
cc $(CFLAGS) $(RSHDOBJS) $(LFLAGS) -f=$(ODIR)/rshd
rshdc: rshdc.r
cc $(CFLAGS) rshdc.r $(LFLAGS) -f=$(ODIR)/rshdc
#remote copy client/server
rcp: rcp.r unet.l
cc $(CFLAGS) rcp.r $(LFLAGS) -f=$(ODIR)/rcp
#rmt remote tape server
rmt: rmt.r
cc $(CFLAGS) rmt.r $(LFLAGS) -f=$(ODIR)/rmt
# support library
unet.l: $(NOBJS) $(UOBJS) $(BLARSOBJS)
merge $(NOBJS) $(UOBJS) $(BLARSOBJS) >-unet.l