📄 makefile
字号:
## @(#)Makefile 1.1 92/07/30 SMI## Copyright 1987 Sun Microsystems ## Copyright (c) 1984 AT&T# All Rights Reserved# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T# The copyright notice above does not evidence any# actual or intended publication of such source code.#ident "@(#)listen:listen.mk 1.14.2.1"## listen.mk:# makefile for network listener - System V release 3.0#DESTDIR=CC = /usr/5bin/ccCFLAGS= -OLDFLAGS= $(LLDFLAGS)LDLIBS = -lnslLIBNLS = libnls.aINC=.LSTINC=..MAKE.STATE:.INIT: listen.h lserror.h lsnlsmsg.h lssmbmsg.h print.h lsdbf.h lsfiles.h \ lsparam.h nlsenv.h# change the next two lines to compile with -g# OPT = -gLLDFLAGS= -sCHKDIR = $(DESTDIR)/var/net $(DESTDIR)/var/net/nlsINSDIR = $(DESTDIR)/var/net/nlsLIBDIR = $(DESTDIR)/usr/libLSUID = daemonLSGID = daemonLIBID = binLLDLIBS = \ $(LIBNLS)# The DEBUG module can always be included...# if DEBUGMODE is undefined, no code gets compiled.# doprnt.o is from system V rel 5.0.5.DBGOBJ = doprnt.oDBGSRC = doprnt.cSRC = \ listen.c \ lsdata.c \ lsdbf.c \ lslog.c \ lssmb.c \ nlsaddr.c \ nlsdata.c $(DBGSRC)LIBSRC = \ nlsenv.c \ nlsrequest.cS4SRC = \ lsnames.c \ nlsconnect.c \ nlsname.c \ nlsestab.c \ putenv.cPRODUCT = $(INSDIR)/listenLSTINCS = \ $(LSTINC)/lsparam.h \ $(LSTINC)/lsfiles.h \ $(LSTINC)/lserror.h \ $(LSTINC)/lsnlsmsg.h \ $(LSTINC)/lssmbmsg.h \ $(LSTINC)/lsdbf.hDBGINCS = \ $(LSTINC)/lsparam.h \ $(LSTINC)/print.hSMBINCS = \ $(LSTINC)/lssmbmsg.h \ $(LSTINC)/lsparam.h \ $(LSTINC)/lsdbf.hCONINCS = \ $(LSTINC)/listen.hALLINCS = $(LSTINCS) $(DBGINCS) $(SMBINCS) $(CONINCS)LSOBJS = \ listen.o \ lslog.o \ lsdbf.o \ lssmb.o \ lsdata.o \ nlsdata.o \ nlsaddr.oNLSOBJS = \ $(LIBNLS)(nlsenv.o) \ $(LIBNLS)(nlsrequest.o)S4OBJS = \ lsnames.o \ nlsconnect.o \ nlsname.o \ nlsestab.o \ putenv.oall: listen libnls# # SHAREDLIB version#listen: $(LSOBJS) $(DBGOBJ) $(LLDLIBS) $(CC) $(CFLAGS) -o listen $(LSOBJS) $(DBGOBJ) \ $(LDFLAGS) $(LLDLIBS) $(LDLIBS) $(SYSCALLS)libnls: $(LIBNLS)$(LIBNLS): $(NLSOBJS) ranlib $(LIBNLS).PRECIOUS: $(LIBNLS)s4stuff: $(S4OBJS) $(CC) -c $(S4OBJS)listen.o: $(LSTINCS)lsdbf.o: $(LSTINCS)lslog.o: $(LSTINCS)lssmb.o: $(LSTINC)/lssmbmsg.h \ $(LSTINC)/lsparam.h $(LSTINC)/lsdbf.hlsdata.o: $(LSTINCS)doprnt.o: $(DBGINCS)# listener library routines and /usr/include headers:# putenv.o should only be included on an S4. (not included in s4's libc.a)# In addition, nlsconnect.o, nlsestab.o, and nlsname.o are only on the S4.$(LIBNLS)(nlsenv.o): $(LSTINC)/nlsenv.h$(LIBNLS)(nlsrequest.o): $(LSTINC)/listen.h# S4 stuff onlynlsconnect.o: $(CONINCS)nlsname.o: $(INC)/string.h $(INC)/ctype.hnlsestab.o: $(INC)/stdio.h $(INC)/ctype.h $(INC)/fcntl.h \ $(INC)/errno.h $(INC)/sys/utsname.h \ $(INC)/sys/tiuser.h $(LSTINC)/listen.hputenv.o:install: all -rm -f $(LIBDIR)/$(LIBNLS) install -d -o $(LIBID) -g $(LIBID) -m 755 $(LIBDIR) install -o $(LIBID) -g $(LIBID) -m 644 $(LIBNLS) $(LIBDIR) install -o $(LSUID) -g $(LSGID) listen $(DESTDIR)/usr/etc (cd $(DESTDIR)/var/net/nls; \ rm -f listen; \ ln -s ../../../../usr/etc/listen listen)$(CHKDIR): if test ! -d $@; then \ mkdir $@; \ /usr/etc/chown $(LSUID) $@; \ /usr/bin/chgrp $(LSGID) $@; \ ficlean: $(RM) $(BINS) libnls.a *.o
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -