mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 11:20:23 +02:00
+ added possibility to read makefile.loc if it exists
this allows simple addition of private rules * restored EXENAME dependencies PASFILES and INCFILES where not defined anymore !!
This commit is contained in:
parent
1105d874d0
commit
1148101e8d
@ -40,7 +40,6 @@ ifndef RTLOPTS
|
|||||||
RTLOPTS=
|
RTLOPTS=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# Defaults
|
# Defaults
|
||||||
#####################################################################
|
#####################################################################
|
||||||
@ -73,6 +72,7 @@ include $(CFG)/makefile.cfg
|
|||||||
# Setup Targets
|
# Setup Targets
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
|
|
||||||
MSGFILE=error$(LANGUAGE).msg
|
MSGFILE=error$(LANGUAGE).msg
|
||||||
|
|
||||||
DIFFEXIST:=$(shell $(DIFF) --help)
|
DIFFEXIST:=$(shell $(DIFF) --help)
|
||||||
@ -212,7 +212,7 @@ $(EXENAME) : $(PPEXENAME)
|
|||||||
$(EXECPPAS)
|
$(EXECPPAS)
|
||||||
$(MOVE) $(PPEXENAME) $(EXENAME)
|
$(MOVE) $(PPEXENAME) $(EXENAME)
|
||||||
else
|
else
|
||||||
$(EXENAME) : $(PASFILES) $(INCFILES) $(MSGFILES)
|
$(EXENAME) : $(wildcard *.pas) $(wildcard *.inc)
|
||||||
$(COMPILER) $(LOCALOPT) pp.pas
|
$(COMPILER) $(LOCALOPT) pp.pas
|
||||||
$(EXECPPAS)
|
$(EXECPPAS)
|
||||||
$(MOVE) $(PPEXENAME) $(EXENAME)
|
$(MOVE) $(PPEXENAME) $(EXENAME)
|
||||||
@ -296,6 +296,17 @@ ansirtl:
|
|||||||
test:
|
test:
|
||||||
@echo time is $(STARTTIME) date.exe is $(DATE)
|
@echo time is $(STARTTIME) date.exe is $(DATE)
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
# local user configurable file
|
||||||
|
# in makefile.loc you can add any desired target
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
localmake:=$(strip $(wildcard makefile.loc))
|
||||||
|
|
||||||
|
ifdef localmake
|
||||||
|
include ./$(localmake)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# Default targets
|
# Default targets
|
||||||
@ -305,7 +316,13 @@ include $(CFG)/makefile.def
|
|||||||
|
|
||||||
#
|
#
|
||||||
# $Log$
|
# $Log$
|
||||||
# Revision 1.4 1998-09-16 16:41:38 peter
|
# Revision 1.5 1998-09-22 13:09:24 pierre
|
||||||
|
# + added possibility to read makefile.loc if it exists
|
||||||
|
# this allows simple addition of private rules
|
||||||
|
# * restored EXENAME dependencies
|
||||||
|
# PASFILES and INCFILES where not defined anymore !!
|
||||||
|
#
|
||||||
|
# Revision 1.4 1998/09/16 16:41:38 peter
|
||||||
# * merged fixes
|
# * merged fixes
|
||||||
#
|
#
|
||||||
# Revision 1.1.2.2 1998/09/16 16:12:43 peter
|
# Revision 1.1.2.2 1998/09/16 16:12:43 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user