mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 02:09:33 +02:00
* added rule to recompile ctest.c if gcc is found
This commit is contained in:
parent
df06325acd
commit
a94a788ea1
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Don't edit, this file is generated by FPCMake Version 1.1 [2002/11/18]
|
||||
# Don't edit, this file is generated by FPCMake Version 1.1 [2002/09/26]
|
||||
#
|
||||
default: allexectests
|
||||
MAKEFILETARGETS=linux go32v2 win32 os2 freebsd beos netbsd amiga atari sunos qnx netware openbsd wdosx
|
||||
@ -1066,6 +1066,12 @@ endif
|
||||
ifndef LOG
|
||||
export LOG:=log
|
||||
endif
|
||||
ifndef CCOMPILER
|
||||
CCOMPILER:=$(strip $(wildcard $(addsuffix /gcc$(SRCEXEEXT),$(SEARCHPATH))))
|
||||
ifneq ($(CCOMPILER),)
|
||||
CCOMPILER:=$(firstword $(CCOMPILER))
|
||||
endif
|
||||
endif
|
||||
units : units/$(FPCMADE)
|
||||
units/$(FPCMADE):
|
||||
$(MAKE) -C units
|
||||
@ -1093,6 +1099,10 @@ DIRS=webtbs webtbf tbs tbf test test/cg test/units/system test/units/dos test/un
|
||||
%.elg : %.pp
|
||||
$(DOTEST) $(DOTESTOPT) -e $<
|
||||
.PHONY: allpreps
|
||||
ifdef CCOMPILER
|
||||
test/cg/obj/$(OS_TARGET)/$(CPU_TARGET)/ctest.o : test/cg/obj/ctest.c
|
||||
-$(CCOMPILER) -c -o test/cg/obj/$(OS_TARGET)/$(CPU_TARGET)/ctest.o test/cg/obj/ctest.c
|
||||
endif
|
||||
allpreps: allpreps-stamp.$(OS_TARGET)
|
||||
allpreps-stamp.$(OS_TARGET):
|
||||
$(FPC) -FE. -Fuunits test/cg/ptest.pp
|
||||
|
@ -47,6 +47,13 @@ ifndef LOG
|
||||
export LOG:=log
|
||||
endif
|
||||
|
||||
ifndef CCOMPILER
|
||||
CCOMPILER:=$(strip $(wildcard $(addsuffix /gcc$(SRCEXEEXT),$(SEARCHPATH))))
|
||||
ifneq ($(CCOMPILER),)
|
||||
CCOMPILER:=$(firstword $(CCOMPILER))
|
||||
endif
|
||||
endif
|
||||
|
||||
units : units/$(FPCMADE)
|
||||
units/$(FPCMADE):
|
||||
$(MAKE) -C units
|
||||
@ -99,6 +106,12 @@ DIRS=webtbs webtbf tbs tbf test test/cg test/units/system test/units/dos test/un
|
||||
|
||||
.PHONY: allpreps
|
||||
|
||||
|
||||
ifdef CCOMPILER
|
||||
test/cg/obj/$(OS_TARGET)/$(CPU_TARGET)/ctest.o : test/cg/obj/ctest.c
|
||||
-$(CCOMPILER) -c -o test/cg/obj/$(OS_TARGET)/$(CPU_TARGET)/ctest.o test/cg/obj/ctest.c
|
||||
endif
|
||||
|
||||
allpreps: allpreps-stamp.$(OS_TARGET)
|
||||
allpreps-stamp.$(OS_TARGET):
|
||||
$(FPC) -FE. -Fuunits test/cg/ptest.pp
|
||||
|
Loading…
Reference in New Issue
Block a user