[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.7

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.6       millert    37: # $Sudo: Makefile.in,v 1.200 2000/03/27 02:57:52 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: mantype = @MANTYPE@
1.6       millert    89: mansectsu = @mansectsu@
                     90: mansectform = @mansectform@
                     91: mandirsu = $(mandir)/$(mantype)$(mansectsu)
                     92: mandirform = $(mandir)/$(mantype)$(mansectform)
1.1       millert    93:
                     94: # User and group ids the installed files should be "owned" by
                     95: install_uid = 0
                     96: install_gid = 0
                     97:
                     98: # User, group, and mode the sudoers file should be "owned" by (configure)
                     99: sudoers_uid = @SUDOERS_UID@
                    100: sudoers_gid = @SUDOERS_GID@
                    101: sudoers_mode = @SUDOERS_MODE@
                    102:
                    103: # Pass in paths and uid/gid + OS dependent defined
                    104: 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)
                    105:
                    106: #### End of system configuration section. ####
                    107:
                    108: SHELL = /bin/sh
                    109:
                    110: PROGS = @PROGS@
                    111:
                    112: SRCS = alloc.c alloca.c check.c defaults.c fileops.c find_path.c fnmatch.c \
                    113:        getcwd.c getspwuid.c goodpath.c interfaces.c lex.yy.c lsearch.c \
                    114:        logging.c parse.c parse.lex parse.yacc putenv.c snprintf.c strcasecmp.c \
                    115:        strerror.c sudo.c sudo.tab.c sudo_setenv.c testsudoers.c tgetpass.c \
                    116:        utime.c visudo.c $(AUTH_SRCS)
                    117:
1.7     ! millert   118: AUTH_SRCS = auth/afs.c auth/aix_auth.c auth/bsdauth.c auth/dce.c auth/fwtk.c \
        !           119:            auth/kerb4.c auth/kerb5.c auth/pam.c auth/passwd.c auth/rfc1938.c \
1.1       millert   120:            auth/secureware.c auth/securid.c auth/sia.c auth/sudo_auth.c
                    121:
                    122: HDRS = compat.h defaults.h ins_2001.h ins_classic.h ins_csops.h ins_goons.h \
                    123:        insults.h interfaces.h logging.h parse.h sudo.h sudo.tab.h version.h \
                    124:        auth/sudo_auth.h emul/fnmatch.h emul/search.h emul/utime.h
                    125:
                    126: AUTH_OBJS = sudo_auth.o @AUTH_OBJS@
                    127:
                    128: PARSEOBJS = sudo.tab.o lex.yy.o alloc.o defaults.o
                    129:
                    130: SUDOBJS = check.o getspwuid.o goodpath.o fileops.o find_path.o interfaces.o \
                    131:          logging.o parse.o sudo.o sudo_setenv.o tgetpass.o \
                    132:          $(AUTH_OBJS) $(PARSEOBJS)
                    133:
                    134: VISUDOBJS = visudo.o fileops.o $(PARSEOBJS)
                    135:
                    136: TESTOBJS = interfaces.o testsudoers.o $(PARSEOBJS)
                    137:
                    138: LIBOBJS = @LIBOBJS@ @ALLOCA@
                    139:
1.6       millert   140: VERSION = 1.6.3
1.1       millert   141:
                    142: DISTFILES = $(SRCS) $(HDRS) BUGS CHANGES FAQ HISTORY INSTALL INSTALL.configure \
                    143:            LICENSE Makefile.in PORTING README RUNSON TODO TROUBLESHOOTING \
                    144:            UPGRADE acsite.m4 aixcrypt.exp config.guess config.h.in config.sub \
                    145:            configure configure.in fnmatch.3 indent.pro install-sh \
1.2       millert   146:            mkinstalldirs pathnames.h.in sample.pam sample.syslog.conf \
1.6       millert   147:            sample.sudoers sudo.cat sudo.man.in sudo.pod sudoers sudoers.cat \
                    148:            sudoers.man.in sudoers.pod visudo.cat visudo.man.in visudo.pod \
                    149:            auth/API
1.2       millert   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)
1.6       millert   181:        $(CC) -o $@ $(VISUDOBJS) $(LIBOBJS) $(LDFLAGS) $(LIBS) $(NET_LIBS)
1.1       millert   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
1.7     ! millert   233: bsdauth.o: $(authdir)/bsdauth.c $(AUTHDEP)
        !           234:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/bsdauth.c
1.1       millert   235: dce.o: $(authdir)/dce.c $(AUTHDEP)
                    236:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/dce.c
                    237: fwtk.o: $(authdir)/fwtk.c $(AUTHDEP)
                    238:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/fwtk.c
                    239: kerb4.o: $(authdir)/kerb4.c $(AUTHDEP)
                    240:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/kerb4.c
                    241: kerb5.o: $(authdir)/kerb5.c $(AUTHDEP)
                    242:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/kerb5.c
                    243: pam.o: $(authdir)/pam.c $(AUTHDEP)
                    244:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/pam.c
                    245: passwd.o: $(authdir)/passwd.c $(AUTHDEP)
                    246:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/passwd.c
                    247: rfc1938.o: $(authdir)/rfc1938.c $(AUTHDEP)
                    248:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/rfc1938.c
                    249: secureware.o: $(authdir)/secureware.c $(AUTHDEP)
                    250:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/secureware.c
                    251: securid.o: $(authdir)/securid.c $(AUTHDEP)
                    252:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/securid.c
                    253: sia.o: $(authdir)/sia.c $(AUTHDEP)
                    254:        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/sia.c
                    255:
1.6       millert   256: sudo.man.in: $(srcdir)/sudo.pod
1.1       millert   257:        @rm -f $(srcdir)/$@
1.6       millert   258:        (cd $(srcdir); pod2man --section=`echo @MANSECTSU@|tr A-Z a-z` --release=$(VERSION) --center="MAINTENANCE COMMANDS" sudo.pod > $(srcdir)/$@)
                    259:
                    260: sudo.man: sudo.man.in
                    261:        CONFIG_FILES=$@ CONFIG_HEADERS= sh ./config.status
1.1       millert   262:
                    263: sudo.cat: sudo.man
                    264:
1.6       millert   265: visudo.man.in: $(srcdir)/visudo.pod
1.1       millert   266:        @rm -f $(srcdir)/$@
1.6       millert   267:        (cd $(srcdir); pod2man --section=`echo @MANSECTSU@|tr A-Z a-z` --release=$(VERSION) --center="MAINTENANCE COMMANDS" visudo.pod > $(srcdir)/$@)
                    268:
                    269: visudo.man: visudo.man.in
                    270:        CONFIG_FILES=$@ CONFIG_HEADERS= sh ./config.status
1.1       millert   271:
                    272: visudo.cat: visudo.man
                    273:
1.6       millert   274: sudoers.man.in: $(srcdir)/sudoers.pod
1.1       millert   275:        @rm -f $(srcdir)/$@
1.6       millert   276:        (cd $(srcdir); pod2man --section=`echo @MANSECTFORM@|tr A-Z a-z` --release=$(VERSION) --center="FILE FORMATS" sudoers.pod | sed 's/"\\f(CW""\\fR"/\\f(CW""\\fR/' > $(srcdir)/$@)
                    277:
                    278: sudoers.man:: sudoers.man.in
                    279:        CONFIG_FILES=$@ CONFIG_HEADERS= sh ./config.status
1.1       millert   280:
                    281: sudoers.cat: sudoers.man
                    282:
                    283: install: install-dirs install-binaries install-sudoers install-man
                    284:
                    285: install-dirs:
1.6       millert   286:        $(SHELL) $(srcdir)/mkinstalldirs $(sudodir) $(visudodir) $(sudoersdir) $(mandirsu) $(mandirform)
1.1       millert   287:
                    288: install-binaries: $(PROGS)
                    289:        $(INSTALL) -o $(install_uid) -g $(install_gid) -m 4111 -s sudo $(sudodir)/sudo
                    290:        $(INSTALL) -o $(install_uid) -g $(install_gid) -m 0111 -s visudo $(visudodir)/visudo
                    291:
                    292: install-sudoers:
1.6       millert   293:        @if [ -f $(sudoersdir)/sudoers ]; then \
1.1       millert   294:            echo "Setting user/group and mode on existing $(sudoersdir)/sudoers file."; \
                    295:            chown $(sudoers_uid) $(sudoersdir)/sudoers; \
                    296:            chgrp $(sudoers_gid) $(sudoersdir)/sudoers; \
                    297:            chmod $(sudoers_mode) $(sudoersdir)/sudoers; \
                    298:        else \
                    299:            $(INSTALL) -o $(sudoers_uid) -g $(sudoers_gid) -m $(sudoers_mode) \
                    300:                $(srcdir)/sudoers $(sudoersdir)/sudoers; \
                    301:        fi
                    302:
                    303: install-man:
1.6       millert   304:        $(INSTALL) -o $(install_uid) -g $(install_gid) -m 0444 @mansrcdir@/sudo.$(mantype) $(mandirsu)/sudo.$(mansectsu)
                    305:        $(INSTALL) -o $(install_uid) -g $(install_gid) -m 0444 @mansrcdir@/visudo.$(mantype) $(mandirsu)/visudo.$(mansectsu)
                    306:        $(INSTALL) -o $(install_uid) -g $(install_gid) -m 0444 @mansrcdir@/sudoers.$(mantype) $(mandirform)/sudoers.$(mansectform)
1.1       millert   307: @MAN_POSTINSTALL@
1.4       millert   308:
                    309: check:
                    310:        @echo nothing to check
1.1       millert   311:
                    312: tags: $(SRCS)
                    313:        ctags $(SRCS)
                    314:
                    315: TAGS: $(SRCS)
                    316:        etags $(SRCS)
                    317:
                    318: clean:
                    319:        -rm -f *.o $(PROGS) testsudoers core sudo.core visudo.core \
                    320:               testsudoers.core
                    321:
                    322: mostlyclean: clean
                    323:
                    324: distclean: clean
1.6       millert   325:        -rm -f Makefile *.man pathnames.h config.h config.status config.cache \
1.3       millert   326:               config.log $(PARSESRCS)
1.1       millert   327:
                    328: clobber: distclean
                    329:
                    330: realclean: distclean
                    331:        rm -f TAGS tags
                    332:
                    333: cleandir: realclean
                    334:
1.6       millert   335: dist:
1.1       millert   336:        rm -f ../sudo-$(VERSION).tar.gz
                    337:        ( cd .. ; TF="/tmp/sudo.dist$$$$" ; rm -f $$TF ; for i in $(DISTFILES) ; \
                    338:          do echo sudo-$(VERSION)/$$i >> $$TF ; done ; \
                    339:          tar Ocf sudo-$(VERSION).tar \
                    340:          `cat $$TF` && gzip --best sudo-$(VERSION).tar && rm -f $$TF)
                    341:        ls -l ../sudo-$(VERSION).tar.gz
1.2       millert   342:
                    343: bindist:
                    344:        @mkdir tmp.`arch -l`
                    345:        @mkdir tmp.`arch -l`/sudo-$(VERSION)
                    346:        ( cd tmp.`arch -l`/sudo-$(VERSION) ; \
                    347:          for i in $(BINFILES) ; do \
                    348:            if [ -f ../../$$i ]; then \
                    349:              cp ../../$$i . ; \
                    350:            elif [ -f $(srcdir)/$$i ]; then \
                    351:              cp $(srcdir)/$$i . ; \
                    352:            else \
                    353:              cp ../../$(srcdir)/$$i . ; \
                    354:            fi ; \
                    355:          done ; \
1.5       millert   356:          ln -s TROUBLESHOOTING FAQ ; \
1.2       millert   357:          for i in $(BINSPECIAL) ; do \
                    358:            if [ -f ../../$$i ]; then \
                    359:              cp ../../$$i `basename $$i .binary` ; \
                    360:            elif [ -f $(srcdir)/$$i ]; then \
                    361:              cp $(srcdir)/$$i `basename $$i .binary` ; \
                    362:            else \
                    363:              cp ../../$(srcdir)/$$i `basename $$i .binary` ; \
                    364:            fi ; \
                    365:          done ; \
                    366:          cd .. ; tar Ocf ../sudo-$(VERSION)-`arch -l`.tar sudo-$(VERSION) ; \
                    367:        )
                    368:        gzip --best sudo-$(VERSION)-`arch -l`.tar
                    369:        rm -rf tmp.`arch -l`