mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-28 11:43:09 +03:00
a5131135c4
git-svn-id: svn://kolibrios.org@762 a494cfbc-eb01-0410-851d-a64ba20cac60
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
# <20>¥à¥¬¥ ï ®ªà㦥¨ï FPCDIR ¤®«¦ 㪠§ë¢ âì ¯ ¯ªã á FreePascal,
|
||
# «¨¡® ¢ ᥪ樨 default ¢ ¯¥à¥¬¥®© fpcdir 㪠¦¨â¥ â®çë© ¯ãâì ª ¥©.
|
||
# <20>ãâì 㪠§ë¢ ¥âáï ¡¥§ § ¢¥àè î饣® á«íè (¨«¨ ®¡à ⮣® á«íè ).
|
||
|
||
# <20>¥à¥¬¥ ï ®ªà㦥¨ï KFPCDIR ¤®«¦ 㪠§ë¢ âì ¯ ¯ªã á ¯à®¥ªâ®¬
|
||
# KolibriOS FreePascal.
|
||
# <20>ãâì 㪠§ë¢ ¥âáï ¡¥§ § ¢¥àè î饣® á«íè (¨«¨ ®¡à ⮣® á«íè ).
|
||
|
||
[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)/$^
|