Skip to content
Snippets Groups Projects
Commit 0889bb1c authored by benjamin.franksen's avatar benjamin.franksen
Browse files

throw out obsolete stuff from Makefile

parent bdb9bba6
No related branches found
No related tags found
No related merge requests found
......@@ -4,52 +4,29 @@ include $(TOP)/configure/CONFIG
#----------------------------------------
# ADD MACRO DEFINITIONS AFTER THIS LINE
USE_LEMON = 1
# Internal debug control
#USR_CPPFLAGS = -DDEBUG
# YACC options (generate y.tab.h; generate y.output)
YACCOPT = -d -v
LEXOPT += -s -d
# snc product
PROD_HOST = snc
ifdef USE_LEMON
PROD_HOST += lemon
endif
snc_LIBS += $(EPICS_BASE_IOC_LIBS)
ifdef USE_LEMON
USR_CFLAGS += -DUSE_LEMON
snc_SRCS += snl.c
snc_SRCS += snl_lex.re
else
snc_SRCS += snc.c
endif
snc_SRCS += snc_main.c parse.c phase2.c
snc_SRCS += gen_ss_code.c gen_tables.c sncVersion.c
# Lex library
snc_SYS_LIBS_WIN32 += -nil-
snc_SYS_LIBS_cygwin32 += -nil-
snc_SYS_LIBS_Linux += fl
snc_SYS_LIBS_DEFAULT += l
ifdef USE_LEMON
lemon_SRCS = lemon.c
LEMON = $(INSTALL_BIN)/lemon
endif
include $(TOP)/configure/RULES
#----------------------------------------
# ADD RULES AFTER THIS LINE
# The generated lex file includes snc.h
#snc_lex.c: snc.h ../snc_lex.l
snc$(OBJ): snc_lex.c
# How to generate the version file
sncVersion.c: $(TOP)/configure/CONFIG
$(RM) $@
......@@ -58,7 +35,6 @@ sncVersion.c: $(TOP)/configure/CONFIG
clean::
@$(RM) snc.c snc_lex.c
ifdef USE_LEMON
snl.c snl.h: snl.lem snl.lt $(LEMON)
$(LEMON) snl.lem
......@@ -68,11 +44,7 @@ snl.c snl.h: snl.lem snl.lt $(LEMON)
%.lt: ../%.lt
$(CP) $< .
vpath %.re . ..
vpath %.re ..
snl_lex.c: snl.re snl.h
re2c -d -o $@ $<
else
snc.c: snc_lex.c
endif
re2c -o $@ $<
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment