[BACK]Return to Makefile.in CVS log [TXT][DIR] Up to [local] / src / usr.bin / sudo

Annotation of src/usr.bin/sudo/Makefile.in, Revision 1.5

1.1       millert     1: #
1.4       millert     2: # Copyright (c) 1996, 1998-2000 Todd C. Miller <Todd.Miller@courtesan.com>
1.1       millert     3: # All rights reserved.
                      4: #
                      5: # Redistribution and use in source and binary forms, with or without
                      6: # modification, are permitted provided that the following conditions
                      7: # are met:
                      8: #
                      9: # 1. Redistributions of source code must retain the above copyright
                     10: #    notice, this list of conditions and the following disclaimer.
                     11: #
                     12: # 2. Redistributions in binary form must reproduce the above copyright
                     13: #    notice, this list of conditions and the following disclaimer in the
                     14: #    documentation and/or other materials provided with the distribution.
                     15: #
                     16: # 3. The name of the author may not be used to endorse or promote products
                     17: #    derived from this software without specific prior written permission
                     18: #    from the author.
                     19: #
                     20: # 4. Products derived from this software may not be called "Sudo" nor
                     21: #    may "Sudo" appear in their names without specific prior written
                     22: #    permission from the author.
                     23: #
                     24: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
                     25: # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
                     26: # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
                     27: # THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
                     28: # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
                     29: # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
                     30: # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
                     31: # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
                     32: # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
                     33: # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     34: #
                     35: # @configure_input@
                     36: #
1.5     ! millert    37: # $Sudo: Makefile.in,v 1.194 2000/01/24 15:48:46 millert Exp $
1.1       millert    38: #
                     39:
                     40: #### Start of system configuration section. ####
                     41:
                     42: srcdir = @srcdir@
                     43: authdir = $(srcdir)/auth
                     44: VPATH = @srcdir@
                     45:
                     46: # Compiler & tools to use
                     47: CC = @CC@
                     48: LEX = flex
                     49: YACC = @YACC@
                     50: NROFF = nroff
                     51:
                     52: # Which install program?
1.2       millert    53: INSTALL = $(SHELL) $(srcdir)/install-sh -c
1.1       millert    54:
                     55: # Libraries
                     56: LIBS = @LIBS@
                     57: NET_LIBS = @NET_LIBS@
                     58: SUDO_LIBS = @SUDO_LIBS@ @AFS_LIBS@ $(LIBS) $(NET_LIBS)
                     59:
                     60: # C preprocessor flags
                     61: CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@
                     62:
                     63: # Usually -O and/or -g
                     64: CFLAGS = @CFLAGS@
                     65:
                     66: # Flags to pass to the link stage
                     67: LDFLAGS = @LDFLAGS@
                     68: SUDO_LDFLAGS = @SUDO_LDFLAGS@ $(LDFLAGS)
                     69:
                     70: # Where to install things...
                     71: prefix = @prefix@
                     72: exec_prefix = @exec_prefix@
                     73: bindir = @bindir@
                     74: sbindir = @sbindir@
                     75: sysconfdir = @sysconfdir@
                     76: mandir = @mandir@
                     77:
                     78: # Directory in which to install sudo.
                     79: sudodir = $(bindir)
                     80:
                     81: # Directory in which to install visudo
                     82: visudodir = $(sbindir)
                     83:
                     84: # Directory in which to install the sudoers file
                     85: sudoersdir = $(sysconfdir)
                     86:
                     87: # Directory in which to install the man page
                     88: # set mansect5 to 4 on sysV machines.
                     89: mantype = @MANTYPE@
                     90: mansect8 = 8
                     91: mansect5 = 5
                     92: mandir8 = $(mandir)/$(mantype)$(mansect8)
                     93: mandir5 = $(mandir)/$(mantype)$(mansect5)
                     94:
                     95: # User and group ids the installed files should be "owned" by
                     96: install_uid = 0
                     97: install_gid = 0
                     98:
                     99: # User, group, and mode the sudoers file should be "owned" by (configure)
                    100: sudoers_uid = @SUDOERS_UID@
                    101: sudoers_gid = @SUDOERS_GID@
                    102: sudoers_mode = @SUDOERS_MODE@
                    103:
                    104: # Pass in paths and uid/gid + OS dependent defined
                    105: DEFS = @OSDEFS@ -D_PATH_SUDOERS=\"$(sudoersdir)/sudoers\" -D_PATH_SUDOERS_TMP=\"$(sudoersdir)/sudoers.tmp\" -DSUDOERS_UID=$(sudoers_uid) -DSUDOERS_GID=$(sudoers_gid) -DSUDOERS_MODE=$(sudoers_mode)
                    106:
                    107: #### End of system configuration section. ####
                    108:
                    109: SHELL = /bin/sh
                    110:
                    111: PROGS = @PROGS@
                    112:
                    113: SRCS = alloc.c alloca.c check.c defaults.c fileops.c find_path.c fnmatch.c \
                    114:        getcwd.c getspwuid.c goodpath.c interfaces.c lex.yy.c lsearch.c \
                    115:        logging.c parse.c parse.lex parse.yacc putenv.c snprintf.c strcasecmp.c \
                    116:        strerror.c sudo.c sudo.tab.c sudo_setenv.c testsudoers.c tgetpass.c \
                    117:        utime.c visudo.c $(AUTH_SRCS)
                    118:
                    119: AUTH_SRCS = auth/afs.c auth/aix_auth.c auth/dce.c auth/fwtk.c auth/kerb4.c \
                    120:            auth/kerb5.c auth/pam.c auth/passwd.c auth/rfc1938.c \
                    121:            auth/secureware.c auth/securid.c auth/sia.c auth/sudo_auth.c
                    122:
                    123: HDRS = compat.h defaults.h ins_2001.h ins_classic.h ins_csops.h ins_goons.h \
                    124:        insults.h interfaces.h logging.h parse.h sudo.h sudo.tab.h version.h \
                    125:        auth/sudo_auth.h emul/fnmatch.h emul/search.h emul/utime.h
                    126:
                    127: AUTH_OBJS = sudo_auth.o @AUTH_OBJS@
                    128:
                    129: PARSEOBJS = sudo.tab.o lex.yy.o alloc.o defaults.o
                    130:
                    131: SUDOBJS = check.o getspwuid.o goodpath.o fileops.o find_path.o interfaces.o \
                    132:          logging.o parse.o sudo.o sudo_setenv.o tgetpass.o \
                    133:          $(AUTH_OBJS) $(PARSEOBJS)
                    134:
                    135: VISUDOBJS = visudo.o fileops.o $(PARSEOBJS)
                    136:
                    137: TESTOBJS = interfaces.o testsudoers.o $(PARSEOBJS)
                    138:
                    139: LIBOBJS = @LIBOBJS@ @ALLOCA@
                    140:
1.4       millert   141: VERSION = 1.6.2
1.1       millert   142:
                    143: DISTFILES = $(SRCS) $(HDRS) BUGS CHANGES FAQ HISTORY INSTALL INSTALL.configure \
                    144:            LICENSE Makefile.in PORTING README RUNSON TODO TROUBLESHOOTING \
                    145:            UPGRADE acsite.m4 aixcrypt.exp config.guess config.h.in config.sub \
                    146:            configure configure.in fnmatch.3 indent.pro install-sh \
1.2       millert   147:            mkinstalldirs pathnames.h.in sample.pam sample.syslog.conf \
                    148:            sample.sudoers sudo.cat sudo.man sudo.pod sudoers sudoers.cat \
                    149:            sudoers.man sudoers.pod visudo.cat visudo.man visudo.pod auth/API
                    150:
1.5     ! millert   151: BINFILES= BUGS CHANGES HISTORY LICENSE README TODO TROUBLESHOOTING \
1.2       millert   152:          UPGRADE install-sh mkinstalldirs sample.syslog.conf sample.sudoers \
                    153:          sudo sudo.cat sudo.man sudo.pod sudoers sudoers.cat sudoers.man \
                    154:          sudoers.pod visudo visudo.cat visudo.man visudo.pod
                    155:
                    156: BINSPECIAL= INSTALL.binary Makefile.binary
1.1       millert   157:
                    158: SUDODEP = $(srcdir)/sudo.h $(srcdir)/compat.h $(srcdir)/defaults.h \
                    159:          $(srcdir)/logging.h config.h pathnames.h
                    160:
                    161: AUTHDEP = $(SUDODEP) $(authdir)/sudo_auth.h
                    162:
                    163: INSDEP = $(srcdir)/ins_2001.h $(srcdir)/ins_classic.h $(srcdir)/ins_csops.h \
                    164:         $(srcdir)/ins_goons.h $(srcdir)/insults.h
                    165:
                    166: all: $(PROGS)
                    167:
                    168: .SUFFIXES: .o .c .h .lex .yacc .man .cat
                    169:
                    170: .c.o:
                    171:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $<
                    172:
                    173: .man.cat:
                    174:        @rm -f $(srcdir)/$@
                    175:        $(NROFF) -man $< > $(srcdir)/$@
                    176:
                    177: sudo: $(SUDOBJS) $(LIBOBJS)
                    178:        $(CC) -o $@ $(SUDOBJS) $(LIBOBJS) $(SUDO_LDFLAGS) $(SUDO_LIBS)
                    179:
                    180: visudo: $(VISUDOBJS) $(LIBOBJS)
                    181:        $(CC) -o $@ $(VISUDOBJS) $(LIBOBJS) $(LDFLAGS) $(LIBS)
                    182:
                    183: testsudoers: $(TESTOBJS) $(LIBOBJS)
                    184:        $(CC) -o $@ $(TESTOBJS) $(LIBOBJS) $(LDFLAGS) $(LIBS) $(NET_LIBS)
                    185:
                    186: # Uncomment the following if you want "make clean" to clean the parser
                    187: @DEV@PARSESRCS = sudo.tab.h sudo.tab.c lex.yy.c
                    188:
                    189: # Uncomment the following if you intend to modify parse.yacc
                    190: @DEV@sudo.tab.c sudo.tab.h: parse.yacc
                    191: @DEV@  rm -f sudo.tab.h sudo.tab.c
                    192: @DEV@  $(YACC) -d -b sudo $(srcdir)/parse.yacc
                    193:
                    194: # Uncomment the following if you intend to modify parse.lex
                    195: @DEV@lex.yy.c: parse.lex
                    196: @DEV@  rm -f lex.yy.c
                    197: @DEV@  $(LEX) $(srcdir)/parse.lex
                    198:
                    199: # Dependencies (not counting auth functions)
                    200: alloc.o: alloc.c $(SUDODEP)
                    201: check.o: check.c $(SUDODEP)
                    202: fileops.o: fileops.c $(SUDODEP)
                    203: find_path.o: find_path.c $(SUDODEP)
                    204: getspwuid.o: getspwuid.c $(SUDODEP)
                    205: goodpath.o: goodpath.c $(SUDODEP)
                    206: logging.o: logging.c $(SUDODEP)
                    207: sudo_setenv.o: sudo_setenv.c $(SUDODEP)
                    208: tgetpass.o: tgetpass.c $(SUDODEP)
                    209: visudo.o: visudo.c $(SUDODEP) version.h
                    210: sudo.o: sudo.c $(SUDODEP) interfaces.h version.h
                    211: interfaces.o: interfaces.c $(SUDODEP) interfaces.h
                    212: testsudoers.o: testsudoers.c $(SUDODEP) parse.h interfaces.h
                    213: parse.o: parse.c $(SUDODEP) parse.h interfaces.h
                    214: lex.yy.o: lex.yy.c $(SUDODEP) parse.h sudo.tab.h
                    215: sudo.tab.o: sudo.tab.c $(SUDODEP) parse.h
                    216: defaults.o: defaults.c $(SUDODEP) auth/sudo_auth.h
                    217: fnmatch.o: fnmatch.c config.h compat.h emul/fnmatch.h
                    218: getcwd.o: getcwd.c config.h compat.h
                    219: lsearch.o: lsearch.c config.h compat.h emul/search.h
                    220: putenv.o: putenv.c config.h compat.h
                    221: snprintf.o: snprintf.c config.h compat.h
                    222: strcasecmp.o: strcasecmp.c config.h
                    223: strerror.o: strerror.c config.h
                    224: utime.o: utime.c config.h pathnames.h compat.h emul/utime.h
                    225:
                    226: # Authentication functions live in "auth" dir and so need extra care
                    227: sudo_auth.o: $(authdir)/sudo_auth.c $(AUTHDEP) $(INSDEP)
                    228:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/sudo_auth.c
                    229: afs.o: $(authdir)/afs.c $(AUTHDEP)
                    230:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/afs.c
                    231: aix_auth.o: $(authdir)/aix_auth.c $(AUTHDEP)
                    232:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/aix_auth.c
                    233: dce.o: $(authdir)/dce.c $(AUTHDEP)
                    234:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/dce.c
                    235: fwtk.o: $(authdir)/fwtk.c $(AUTHDEP)
                    236:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/fwtk.c
                    237: kerb4.o: $(authdir)/kerb4.c $(AUTHDEP)
                    238:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/kerb4.c
                    239: kerb5.o: $(authdir)/kerb5.c $(AUTHDEP)
                    240:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/kerb5.c
                    241: pam.o: $(authdir)/pam.c $(AUTHDEP)
                    242:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/pam.c
                    243: passwd.o: $(authdir)/passwd.c $(AUTHDEP)
                    244:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/passwd.c
                    245: rfc1938.o: $(authdir)/rfc1938.c $(AUTHDEP)
                    246:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/rfc1938.c
                    247: secureware.o: $(authdir)/secureware.c $(AUTHDEP)
                    248:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/secureware.c
                    249: securid.o: $(authdir)/securid.c $(AUTHDEP)
                    250:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/securid.c
                    251: sia.o: $(authdir)/sia.c $(AUTHDEP)
                    252:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/sia.c
                    253:
                    254: sudo.man: $(srcdir)/sudo.pod
                    255:        @rm -f $(srcdir)/$@
                    256:        (cd $(srcdir); pod2man --section=$(mansect8) --release=$(VERSION) --center="MAINTENANCE COMMANDS" sudo.pod > $(srcdir)/$@)
                    257:
                    258: sudo.cat: sudo.man
                    259:
                    260: visudo.man: $(srcdir)/visudo.pod
                    261:        @rm -f $(srcdir)/$@
                    262:        (cd $(srcdir); pod2man --section=$(mansect8) --release=$(VERSION) --center="MAINTENANCE COMMANDS" visudo.pod > $(srcdir)/$@)
                    263:
                    264: visudo.cat: visudo.man
                    265:
                    266: sudoers.man: $(srcdir)/sudoers.pod
                    267:        @rm -f $(srcdir)/$@
                    268:        (cd $(srcdir); pod2man --section=$(mansect5) --release=$(VERSION) --center="FILE FORMATS" sudoers.pod > $(srcdir)/$@)
                    269:
                    270: sudoers.cat: sudoers.man
                    271:
                    272: install: install-dirs install-binaries install-sudoers install-man
                    273:
                    274: install-dirs:
1.2       millert   275:        $(SHELL) $(srcdir)/mkinstalldirs $(sudodir) $(visudodir) $(sudoersdir) $(mandir8) $(mandir5)
1.1       millert   276:
                    277: install-binaries: $(PROGS)
                    278:        $(INSTALL) -o $(install_uid) -g $(install_gid) -m 4111 -s sudo $(sudodir)/sudo
                    279:        $(INSTALL) -o $(install_uid) -g $(install_gid) -m 0111 -s visudo $(visudodir)/visudo
                    280:
                    281: install-sudoers:
                    282:        @ if [ -f $(sudoersdir)/sudoers ]; then  \
                    283:            echo "Setting user/group and mode on existing $(sudoersdir)/sudoers file."; \
                    284:            chown $(sudoers_uid) $(sudoersdir)/sudoers; \
                    285:            chgrp $(sudoers_gid) $(sudoersdir)/sudoers; \
                    286:            chmod $(sudoers_mode) $(sudoersdir)/sudoers; \
                    287:        else \
                    288:            $(INSTALL) -o $(sudoers_uid) -g $(sudoers_gid) -m $(sudoers_mode) \
                    289:                $(srcdir)/sudoers $(sudoersdir)/sudoers; \
                    290:        fi
                    291:
                    292: install-man:
                    293:        $(INSTALL) -o $(install_uid) -g $(install_gid) -m 0444 $(srcdir)/sudo.$(mantype) $(mandir8)/sudo.$(mansect8)
                    294:        $(INSTALL) -o $(install_uid) -g $(install_gid) -m 0444 $(srcdir)/visudo.$(mantype) $(mandir8)/visudo.$(mansect8)
                    295:        $(INSTALL) -o $(install_uid) -g $(install_gid) -m 0444 $(srcdir)/sudoers.$(mantype) $(mandir5)/sudoers.$(mansect5)
                    296: @MAN_POSTINSTALL@
1.4       millert   297:
                    298: check:
                    299:        @echo nothing to check
1.1       millert   300:
                    301: tags: $(SRCS)
                    302:        ctags $(SRCS)
                    303:
                    304: TAGS: $(SRCS)
                    305:        etags $(SRCS)
                    306:
                    307: clean:
                    308:        -rm -f *.o $(PROGS) testsudoers core sudo.core visudo.core \
                    309:               testsudoers.core
                    310:
                    311: mostlyclean: clean
                    312:
                    313: distclean: clean
                    314:        -rm -f Makefile pathnames.h config.h config.status config.cache \
1.3       millert   315:               config.log $(PARSESRCS)
1.1       millert   316:
                    317: clobber: distclean
                    318:
                    319: realclean: distclean
                    320:        rm -f TAGS tags
                    321:
                    322: cleandir: realclean
                    323:
                    324: dist: $(DISTFILES)
                    325:        rm -f ../sudo-$(VERSION).tar.gz
                    326:        ( cd .. ; TF="/tmp/sudo.dist$$$$" ; rm -f $$TF ; for i in $(DISTFILES) ; \
                    327:          do echo sudo-$(VERSION)/$$i >> $$TF ; done ; \
                    328:          tar Ocf sudo-$(VERSION).tar \
                    329:          `cat $$TF` && gzip --best sudo-$(VERSION).tar && rm -f $$TF)
                    330:        ls -l ../sudo-$(VERSION).tar.gz
1.2       millert   331:
                    332: bindist:
                    333:        @mkdir tmp.`arch -l`
                    334:        @mkdir tmp.`arch -l`/sudo-$(VERSION)
                    335:        ( cd tmp.`arch -l`/sudo-$(VERSION) ; \
                    336:          for i in $(BINFILES) ; do \
                    337:            if [ -f ../../$$i ]; then \
                    338:              cp ../../$$i . ; \
                    339:            elif [ -f $(srcdir)/$$i ]; then \
                    340:              cp $(srcdir)/$$i . ; \
                    341:            else \
                    342:              cp ../../$(srcdir)/$$i . ; \
                    343:            fi ; \
                    344:          done ; \
1.5     ! millert   345:          ln -s TROUBLESHOOTING FAQ ; \
1.2       millert   346:          for i in $(BINSPECIAL) ; do \
                    347:            if [ -f ../../$$i ]; then \
                    348:              cp ../../$$i `basename $$i .binary` ; \
                    349:            elif [ -f $(srcdir)/$$i ]; then \
                    350:              cp $(srcdir)/$$i `basename $$i .binary` ; \
                    351:            else \
                    352:              cp ../../$(srcdir)/$$i `basename $$i .binary` ; \
                    353:            fi ; \
                    354:          done ; \
                    355:          cd .. ; tar Ocf ../sudo-$(VERSION)-`arch -l`.tar sudo-$(VERSION) ; \
                    356:        )
                    357:        gzip --best sudo-$(VERSION)-`arch -l`.tar
                    358:        rm -rf tmp.`arch -l`