y.tab -> sudo.tab
include pre-yacc'd parse.yacc
This commit is contained in:
28
Makefile.in
28
Makefile.in
@@ -98,7 +98,7 @@ PROGS = @PROGS@
|
||||
SRCS = check.c getspwuid.c find_path.c logging.c parse.c sudo.c \
|
||||
goodpath.c sudo_setenv.c parse.yacc parse.lex visudo.c interfaces.c
|
||||
|
||||
PARSEOBJS = y.tab.o lex.yy.o
|
||||
PARSEOBJS = sudo.tab.o lex.yy.o
|
||||
|
||||
SUDOBJS = check.o getspwuid.o find_path.o logging.o parse.o sudo.o goodpath.o \
|
||||
sudo_setenv.o interfaces.o @DCE_OBJS@ @TGETPASS@
|
||||
@@ -110,7 +110,7 @@ TESTOBJS = interfaces.o testsudoers.o
|
||||
LIBOBJS = @LIBOBJS@ @ALLOCA@
|
||||
|
||||
HDRS = sudo.h pathnames.h options.h compat.h version.h insults.h \
|
||||
ins_2001.h ins_classic.h ins_goons.h ins_csops.h
|
||||
ins_2001.h ins_classic.h ins_goons.h ins_csops.h sudo.tab.h
|
||||
|
||||
VERSION = 1.5.6
|
||||
|
||||
@@ -118,11 +118,11 @@ DISTFILES = $(SRCS) $(HDRS) BUGS CHANGES COPYING HISTORY INSTALL OPTIONS TODO \
|
||||
PORTING README RUNSON FAQ TROUBLESHOOTING Makefile.in acsite.m4 \
|
||||
aixcrypt.exp config.h.in configure configure.in config.guess \
|
||||
config.sub getcwd.c strdup.c indent.pro install-sh mkinstalldirs \
|
||||
lsearch.c putenv.c tgetpass.c emul/search.h emul/utime.h utime.c \
|
||||
fnmatch.c emul/fnmatch.h fnmatch.3 testsudoers.c sample.sudoers \
|
||||
sudo.pod sudo.man sudo.cat visudo.pod visudo.man visudo.cat \
|
||||
sudoers.pod sudoers.man sudoers.cat lex.yy.c sudo-lex.yy.c sudoers \
|
||||
dce_pwent.c alloca.c INSTALL.configure
|
||||
lsearch.c putenv.c sudo.tab.c tgetpass.c emul/search.h \
|
||||
emul/utime.h utime.c fnmatch.c emul/fnmatch.h fnmatch.3 \
|
||||
testsudoers.c sample.sudoers sudo.pod sudo.man sudo.cat visudo.pod \
|
||||
visudo.man visudo.cat sudoers.pod sudoers.man sudoers.cat lex.yy.c \
|
||||
sudo-lex.yy.c sudoers dce_pwent.c alloca.c INSTALL.configure
|
||||
|
||||
VERSIONFILES = emul/utime.h check.c compat.h config.h.in dce_pwent.c \
|
||||
find_path.c getspwuid.c getcwd.c goodpath.c ins_2001.h \
|
||||
@@ -152,18 +152,20 @@ visudo: $(PARSEOBJS) $(VISUDOBJS) $(LIBOBJS)
|
||||
testsudoers: $(PARSEOBJS) $(TESTOBJS)
|
||||
$(CC) -o $@ $(PARSEOBJS) $(TESTOBJS) $(VISUDO_LDFLAGS) $(VISUDO_LIBS)
|
||||
|
||||
y.tab.c y.tab.h: parse.yacc
|
||||
$(YACC) -d $(srcdir)/parse.yacc
|
||||
# Uncomment the following if you intend to modify parse.yacc
|
||||
#sudo.tab.c sudo.tab.h: parse.yacc
|
||||
# rm -f sudo.tab.h sudo.tab.c
|
||||
# $(YACC) -d sudo $(srcdir)/parse.yacc
|
||||
|
||||
y.tab.o: $(HDRS) y.tab.c
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(OSDEFS) $(OPTIONS) y.tab.c
|
||||
sudo.tab.o: $(HDRS) sudo.tab.c
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(OSDEFS) $(OPTIONS) sudo.tab.c
|
||||
|
||||
# Uncomment the following if you intend to modify parse.lex
|
||||
#lex.yy.c: parse.lex
|
||||
# rm -f lex.yy.c
|
||||
# $(LEX) $(srcdir)/parse.lex
|
||||
|
||||
lex.yy.o: lex.yy.c y.tab.h $(HDRS)
|
||||
lex.yy.o: lex.yy.c $(HDRS)
|
||||
|
||||
$(SUDOBJS) $(LIBOBJS) : $(HDRS) config.h
|
||||
|
||||
@@ -235,7 +237,7 @@ TAGS: $(SRCS)
|
||||
etags $(SRCS)
|
||||
|
||||
clean:
|
||||
-rm -f y.tab.[ch] *.o $(PROGS) testsudoers core sudo.core visudo.core
|
||||
-rm -f sudo.tab.[ch] *.o $(PROGS) testsudoers core sudo.core visudo.core
|
||||
|
||||
mostlyclean: clean
|
||||
|
||||
|
Reference in New Issue
Block a user