mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 06:08:16 +02:00

C Makefile C Makefile.fpc --- Recording mergeinfo for merge of r49045 into '.': U . Summary of conflicts: Text conflicts: 2 # revisions: 49045 r49045 | jonas | 2021-03-24 15:33:09 +0100 (Wed, 24 Mar 2021) | 1 line Changed paths: M /trunk/Makefile M /trunk/Makefile.fpc * support building with FPC 3.2.2 git-svn-id: branches/fixes_3_2@49384 -
52 lines
832 B
Makefile
52 lines
832 B
Makefile
#
|
|
# Makefile.fpc for Pascal lex/yacc
|
|
#
|
|
|
|
[package]
|
|
name=lexyacc
|
|
version=3.2.3
|
|
|
|
[target]
|
|
programs=plex pyacc
|
|
units=lexlib yacclib
|
|
|
|
[clean]
|
|
units=lexbase lexopt lexdfa lexpos lexlist lexrules lexmsgs lextable \
|
|
yaccbase yaccmsgs yaccclos yaccpars yacclook yaccsem yacclr0 yacctabl
|
|
|
|
[compiler]
|
|
options=-Sg
|
|
|
|
[install]
|
|
fpcpackage=y
|
|
|
|
[default]
|
|
fpcdir=../..
|
|
|
|
[shared]
|
|
build=n
|
|
|
|
[rules]
|
|
.NOTPARALLEL:
|
|
pyacc$(EXEEXT): pyacc.pas $(wildcard yacc*.pas)
|
|
$(COMPILER) pyacc.pas
|
|
|
|
plex$(EXEEXT): plex.pas $(wildcard lex*.pas)
|
|
$(COMPILER) plex.pas
|
|
|
|
lexlib$(PPUEXT): lexlib.pas
|
|
|
|
yacclib$(PPUEXT): yacclib.pas
|
|
|
|
ifdef UNIXHier
|
|
CODPATH=$(INSTALL_PREFIX)/lib/fpc/lexyacc
|
|
else
|
|
CODPATH=$(INSTALL_BINDIR)
|
|
endif
|
|
|
|
install: fpc_install
|
|
ifndef CROSSINSTALL
|
|
$(MKDIR) $(CODPATH)
|
|
$(COPY) yylex.cod yyparse.cod $(CODPATH)
|
|
endif
|