mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:09:24 +02:00
morphunits: forgot to add the required Makefiles before the previous commit...
git-svn-id: trunk@28520 -
This commit is contained in:
parent
85953d5e99
commit
4c0499a70c
4
.gitattributes
vendored
4
.gitattributes
vendored
@ -5568,6 +5568,10 @@ packages/modplug/Makefile.fpc svneol=native#text/plain
|
||||
packages/modplug/Makefile.fpc.fpcmake svneol=native#text/plain
|
||||
packages/modplug/fpmake.pp svneol=native#text/plain
|
||||
packages/modplug/src/modplug.pas svneol=native#text/plain
|
||||
packages/morphunits/Makefile svneol=native#text/plain
|
||||
packages/morphunits/Makefile.fpc svneol=native#text/plain
|
||||
packages/morphunits/Makefile.fpc.fpcmake svneol=native#text/plain
|
||||
packages/morphunits/fpmake.pp svneol=native#text/plain
|
||||
packages/morphunits/src/agraphics.pas svneol=native#text/plain
|
||||
packages/morphunits/src/ahi.pas svneol=native#text/plain
|
||||
packages/morphunits/src/amigados.pas svneol=native#text/plain
|
||||
|
2387
packages/morphunits/Makefile
Normal file
2387
packages/morphunits/Makefile
Normal file
File diff suppressed because it is too large
Load Diff
91
packages/morphunits/Makefile.fpc
Normal file
91
packages/morphunits/Makefile.fpc
Normal file
@ -0,0 +1,91 @@
|
||||
#
|
||||
# Makefile.fpc for running fpmake
|
||||
#
|
||||
|
||||
[package]
|
||||
name=morphunits
|
||||
version=2.7.1
|
||||
|
||||
[require]
|
||||
packages=rtl fpmkunit
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[prerules]
|
||||
FPMAKE_BIN_CLEAN=$(wildcard ./fpmake$(SRCEXEEXT))
|
||||
ifdef OS_TARGET
|
||||
FPC_TARGETOPT+=--os=$(OS_TARGET)
|
||||
endif
|
||||
ifdef CPU_TARGET
|
||||
FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
|
||||
endif
|
||||
LOCALFPMAKE=./fpmake$(SRCEXEEXT)
|
||||
|
||||
[rules]
|
||||
# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
|
||||
override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
|
||||
override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
|
||||
# Compose general fpmake-parameters
|
||||
ifdef FPMAKEOPT
|
||||
FPMAKE_OPT+=$(FPMAKEOPT)
|
||||
endif
|
||||
FPMAKE_OPT+=--localunitdir=../..
|
||||
FPMAKE_OPT+=--globalunitdir=..
|
||||
FPMAKE_OPT+=$(FPC_TARGETOPT)
|
||||
FPMAKE_OPT+=$(addprefix -o ,$(FPCOPT))
|
||||
FPMAKE_OPT+=--compiler=$(FPC)
|
||||
FPMAKE_OPT+=-bu
|
||||
.NOTPARALLEL:
|
||||
|
||||
fpmake: fpmake.pp
|
||||
$(FPCFPMAKE) fpmake.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) $(FPCMAKEOPT) $(OPT)
|
||||
all: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT)
|
||||
smart: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -XX -o -CX
|
||||
release: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -dRELEASE
|
||||
debug: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -dDEBUG
|
||||
# If no fpmake exists and (dist)clean is called, do not try to build fpmake, it will
|
||||
# most often fail because the dependencies are cleared.
|
||||
# In case of a clean, simply do nothing
|
||||
ifeq ($(FPMAKE_BIN_CLEAN),)
|
||||
clean:
|
||||
else
|
||||
clean:
|
||||
$(FPMAKE_BIN_CLEAN) clean $(FPMAKE_OPT)
|
||||
endif
|
||||
# In case of a distclean, perform an 'old'-style distclean. This to avoid problems
|
||||
# when the package is compiled using fpcmake prior to running this clean using fpmake
|
||||
ifeq ($(FPMAKE_BIN_CLEAN),)
|
||||
distclean: $(addsuffix _distclean,$(TARGET_DIRS)) fpc_cleanall
|
||||
else
|
||||
distclean:
|
||||
ifdef inUnix
|
||||
{ $(FPMAKE_BIN_CLEAN) distclean $(FPMAKE_OPT); if [ $$? != "0" ]; then { echo Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.; $(DEL) $(FPMAKE_BIN_CLEAN); $(MAKE) fpc_cleanall; }; fi; }
|
||||
else
|
||||
$(FPMAKE_BIN_CLEAN) distclean $(FPMAKE_OPT)
|
||||
endif
|
||||
-$(DEL) $(LOCALFPMAKE)
|
||||
endif
|
||||
cleanall: distclean
|
||||
install: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
else
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
endif
|
||||
# distinstall also installs the example-sources
|
||||
distinstall: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
else
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
endif
|
||||
zipinstall: fpmake
|
||||
$(LOCALFPMAKE) zipinstall $(FPMAKE_OPT)
|
25
packages/morphunits/Makefile.fpc.fpcmake
Normal file
25
packages/morphunits/Makefile.fpc.fpcmake
Normal file
@ -0,0 +1,25 @@
|
||||
#
|
||||
# Makefile.fpc for Free Pascal MorphOS units Bindings
|
||||
#
|
||||
|
||||
[package]
|
||||
name=morphunits
|
||||
version=2.7.1
|
||||
|
||||
[target]
|
||||
units= aboxlib agraphics ahi amigados asl clipboard datatypes exec get9 \
|
||||
hardware inputevent intuition keymap kvm layers mui muihelper timer \
|
||||
tinygl utility
|
||||
|
||||
[compiler]
|
||||
includedir=src
|
||||
sourcedir=src
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
59
packages/morphunits/fpmake.pp
Normal file
59
packages/morphunits/fpmake.pp
Normal file
@ -0,0 +1,59 @@
|
||||
{$ifndef ALLPACKAGES}
|
||||
{$mode objfpc}{$H+}
|
||||
program fpmake;
|
||||
|
||||
uses fpmkunit;
|
||||
|
||||
Var
|
||||
P : TPackage;
|
||||
T : TTarget;
|
||||
begin
|
||||
With Installer do
|
||||
begin
|
||||
{$endif ALLPACKAGES}
|
||||
|
||||
P:=AddPackage('morphunits');
|
||||
{$ifdef ALLPACKAGES}
|
||||
P.Directory:=ADirectory;
|
||||
{$endif ALLPACKAGES}
|
||||
P.Version:='2.7.1';
|
||||
|
||||
P.Author := 'Karoly Balogh';
|
||||
P.License := 'LGPL with modification';
|
||||
P.HomepageURL := 'www.freepascal.org';
|
||||
P.Email := '';
|
||||
P.Description := 'A set of units for MorphOS. PowerPC only';
|
||||
P.NeedLibC:= false;
|
||||
|
||||
P.CPUs:=[powerpc];
|
||||
P.OSes:=[MorphOS];
|
||||
|
||||
P.SourcePath.Add('src');
|
||||
P.IncludePath.Add('src');
|
||||
|
||||
T:=P.Targets.AddUnit('exec.pas');
|
||||
T:=P.Targets.AddUnit('timer.pas');
|
||||
T:=P.Targets.AddUnit('utility.pas');
|
||||
T:=P.Targets.AddUnit('intuition.pas');
|
||||
T:=P.Targets.AddUnit('agraphics.pas');
|
||||
T:=P.Targets.AddUnit('amigalib.pas');
|
||||
T:=P.Targets.AddUnit('hardware.pas');
|
||||
T:=P.Targets.AddUnit('amigados.pas');
|
||||
T:=P.Targets.AddUnit('clipboard.pas');
|
||||
T:=P.Targets.AddUnit('datatypes.pas');
|
||||
T:=P.Targets.AddUnit('keymap.pas');
|
||||
T:=P.Targets.AddUnit('asl.pas');
|
||||
T:=P.Targets.AddUnit('layers.pas');
|
||||
T:=P.Targets.AddUnit('inputevent.pas');
|
||||
T:=P.Targets.AddUnit('mui.pas');
|
||||
T:=P.Targets.AddUnit('muihelper.pas');
|
||||
T:=P.Targets.AddUnit('ahi.pas');
|
||||
T:=P.Targets.AddUnit('kvm.pas');
|
||||
T:=P.Targets.AddUnit('get9.pas');
|
||||
T:=P.Targets.AddUnit('tinygl.pas');
|
||||
|
||||
{$ifndef ALLPACKAGES}
|
||||
Run;
|
||||
end;
|
||||
end.
|
||||
{$endif ALLPACKAGES}
|
Loading…
Reference in New Issue
Block a user