starter: Use automake LEX/YACC automatisms.
This commit is contained in:
parent
e01fed7eb3
commit
6f4eaa41a7
|
@ -1,9 +1,10 @@
|
|||
ipsec_PROGRAMS = starter
|
||||
starter_SOURCES = y.tab.c netkey.c y.tab.h parser.h args.h netkey.h \
|
||||
starter_SOURCES = \
|
||||
netkey.c parser.y lexer.l ipsec-parser.h args.h netkey.h \
|
||||
starterwhack.c starterwhack.h starterstroke.c invokepluto.c confread.c \
|
||||
starterstroke.h interfaces.c invokepluto.h confread.h interfaces.h args.c \
|
||||
keywords.c files.h keywords.h cmp.c starter.c cmp.h exec.c invokecharon.c \
|
||||
exec.h invokecharon.h lex.yy.c loglite.c klips.c klips.h
|
||||
exec.h invokecharon.h loglite.c klips.c klips.h
|
||||
|
||||
INCLUDES = \
|
||||
-I${linux_headers} \
|
||||
|
@ -23,9 +24,12 @@ AM_CFLAGS = \
|
|||
-DDEV_URANDOM=\"${urandom_device}\" \
|
||||
-DDEBUG
|
||||
|
||||
AM_YFLAGS = -v -d
|
||||
|
||||
starter_LDADD = defs.o $(top_builddir)/src/libfreeswan/libfreeswan.a $(top_builddir)/src/libstrongswan/libstrongswan.la $(SOCKLIB)
|
||||
EXTRA_DIST = parser.l parser.y keywords.txt ipsec.conf
|
||||
MAINTAINERCLEANFILES = lex.yy.c y.tab.c y.tab.h keywords.c
|
||||
EXTRA_DIST = keywords.txt ipsec.conf
|
||||
MAINTAINERCLEANFILES = keywords.c
|
||||
BUILT_SOURCES = parser.h
|
||||
|
||||
PLUTODIR=$(top_srcdir)/src/pluto
|
||||
SCEPCLIENTDIR=$(top_srcdir)/src/scepclient
|
||||
|
@ -42,15 +46,6 @@ if USE_LOAD_WARNING
|
|||
AM_CFLAGS += -DLOAD_WARNING
|
||||
endif
|
||||
|
||||
lex.yy.c: $(srcdir)/parser.l $(srcdir)/parser.y $(srcdir)/parser.h y.tab.h
|
||||
$(LEX) $(srcdir)/parser.l
|
||||
|
||||
y.tab.c: $(srcdir)/parser.y $(srcdir)/parser.l $(srcdir)/parser.h
|
||||
$(YACC) -v -d $(srcdir)/parser.y
|
||||
|
||||
y.tab.h: $(srcdir)/parser.y $(srcdir)/parser.l $(srcdir)/parser.h
|
||||
$(YACC) -v -d $(srcdir)/parser.y
|
||||
|
||||
keywords.c: $(srcdir)/keywords.txt $(srcdir)/keywords.h
|
||||
$(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include "../pluto/log.h"
|
||||
|
||||
#include "keywords.h"
|
||||
#include "parser.h"
|
||||
#include "confread.h"
|
||||
#include "args.h"
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#define _ARGS_H_
|
||||
|
||||
#include "keywords.h"
|
||||
#include "parser.h"
|
||||
#include "ipsec-parser.h"
|
||||
|
||||
extern char **new_list(char *value);
|
||||
extern bool assign_arg(kw_token_t token, kw_token_t first, kw_list_t *kw
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include "../pluto/log.h"
|
||||
|
||||
#include "keywords.h"
|
||||
#include "parser.h"
|
||||
#include "confread.h"
|
||||
#include "args.h"
|
||||
#include "files.h"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <freeswan.h>
|
||||
#endif
|
||||
|
||||
#include "parser.h"
|
||||
#include "ipsec-parser.h"
|
||||
#include "interfaces.h"
|
||||
|
||||
typedef enum {
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include <glob.h>
|
||||
#endif
|
||||
|
||||
#include "y.tab.h"
|
||||
#include "parser.h"
|
||||
|
||||
#define MAX_INCLUDE_DEPTH 20
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
#include "../pluto/constants.h"
|
||||
#include "../pluto/defs.h"
|
||||
#include "../pluto/log.h"
|
||||
#include "parser.h"
|
||||
#include "ipsec-parser.h"
|
||||
|
||||
#define YYERROR_VERBOSE
|
||||
#define ERRSTRING_LEN 256
|
||||
|
|
Loading…
Reference in New Issue