Use elex and antelope instead of lex and yacc.
This commit is contained in:
@@ -5,6 +5,11 @@ include $(EPICS)/config/CONFIG_BASE
|
||||
USR_LDLIBS = -lDb -lCom
|
||||
USR_LDFLAGS = -L.
|
||||
|
||||
LEX = $(ELEX)
|
||||
YACC = $(EYACC)
|
||||
YACCOPT = -l
|
||||
LEXOPT = -L
|
||||
|
||||
DEPLIBS_BASE = $(EPICS_BASE_LIB)
|
||||
DEPLIBS = ./libDb.a\
|
||||
$(DEPLIBS_BASE)/libCom.a
|
||||
@@ -16,7 +21,6 @@ SRCS.c = \
|
||||
atdb_lex.c \
|
||||
atdb_yacc.c \
|
||||
../dbta.c \
|
||||
../atdb.c \
|
||||
../dbl.c \
|
||||
../dbls.c
|
||||
|
||||
@@ -29,8 +33,8 @@ PROD = dbta dbl dbls atdb
|
||||
|
||||
include $(EPICS)/config/RULES.Unix
|
||||
|
||||
atdb: atdb.o atdb_yacc.o $(DEPLIBS)
|
||||
$(LINK.c) -o $@ atdb.o atdb_yacc.o $(LDLIBS)
|
||||
atdb: atdb_yacc.o $(DEPLIBS)
|
||||
$(LINK.c) -o $@ atdb_yacc.o $(LDLIBS)
|
||||
|
||||
# Extra rule since atdb_lex.c is included in atdb_yacc.c
|
||||
# In my opinion, these objects should really be built
|
||||
|
||||
+3
-3
@@ -2,6 +2,7 @@
|
||||
#include <stdio.h>
|
||||
#include <memory.h>
|
||||
#include <string.h>
|
||||
static int yy_start;
|
||||
#include <dbStaticLib.h>
|
||||
/* kludge for buggy lex/yacc. exploits the fact that we know the union */
|
||||
/* below will be given the name YYSTYPE. done so that ifndef YYSTYPE */
|
||||
@@ -130,6 +131,5 @@ char *str;
|
||||
sprintf(message,"Error line %d : %s\n",line_num, yytext);
|
||||
errMessage(-1,message);
|
||||
}
|
||||
|
||||
yywrap() { return(1); }
|
||||
|
||||
|
||||
#include "atdb.c"
|
||||
|
||||
Reference in New Issue
Block a user