mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-16 20:02:35 +03:00
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
|
# <20><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>㦥<EFBFBD><E3A6A5><EFBFBD> FPCDIR <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㪠<>뢠<EFBFBD><EBA2A0> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20> FreePascal,
|
|||
|
# <20><><EFBFBD><EFBFBD> <20> ᥪ樨 default <20> <20><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> fpcdir 㪠<><E3AAA0><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD>.
|
|||
|
# <20><><EFBFBD><EFBFBD> 㪠<>뢠<EFBFBD><EBA2A0><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>饣<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD> <20><><EFBFBD><EFBFBD>⭮<EFBFBD><E2ADAE> <20><><EFBFBD><EFBFBD><EFBFBD>).
|
|||
|
|
|||
|
# <20><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>㦥<EFBFBD><E3A6A5><EFBFBD> KFPCDIR <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㪠<>뢠<EFBFBD><EBA2A0> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><EFBFBD>⮬
|
|||
|
# KolibriOS FreePascal.
|
|||
|
# <20><><EFBFBD><EFBFBD> 㪠<>뢠<EFBFBD><EBA2A0><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>饣<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD> <20><><EFBFBD><EFBFBD>⭮<EFBFBD><E2ADAE> <20><><EFBFBD><EFBFBD><EFBFBD>).
|
|||
|
|
|||
|
[target]
|
|||
|
programs=LRL
|
|||
|
|
|||
|
[default]
|
|||
|
target=win32
|
|||
|
cpu=i386
|
|||
|
|
|||
|
[compiler]
|
|||
|
options=-dKOLIBRI
|
|||
|
unittargetdir=build
|
|||
|
targetdir=bin
|
|||
|
sourcedir=src
|
|||
|
|
|||
|
[prerules]
|
|||
|
ifdef KFPCDIR
|
|||
|
override KFPCDIR:=$(subst \,/,$(KFPCDIR))
|
|||
|
ifeq ($(wildcard $(KFPCDIR)/bin),)
|
|||
|
override KFPCDIR=wrong
|
|||
|
endif
|
|||
|
else
|
|||
|
override KFPCDIR=wrong
|
|||
|
endif
|
|||
|
|
|||
|
ifeq ($(KFPCDIR),wrong)
|
|||
|
$(error The KFPCDIR environment is wrong)
|
|||
|
endif
|
|||
|
|
|||
|
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(CPU_TARGET)-kolibri)
|
|||
|
KOSEXT=.kex
|
|||
|
EXE2KEX=$(KFPCDIR)/bin/exe2kos
|
|||
|
|
|||
|
[rules]
|
|||
|
ifneq ($(TARGET_PROGRAMS),)
|
|||
|
KOSFILES=$(addsuffix $(KOSEXT),$(TARGET_PROGRAMS))
|
|||
|
endif
|
|||
|
|
|||
|
fpc_all: $(KOSFILES)
|
|||
|
|
|||
|
%$(KOSEXT): %$(EXEEXT)
|
|||
|
@$(EXE2KEX) $(COMPILER_TARGETDIR)/$^ $(COMPILER_TARGETDIR)/$@
|
|||
|
@$(DEL) $(COMPILER_TARGETDIR)/$^
|