mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 16:09:31 +02:00
* Restructured makefiles for examples
git-svn-id: trunk@12404 -
This commit is contained in:
parent
a580fe60d0
commit
944da4c640
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -4168,6 +4168,8 @@ packages/pthreads/src/pthrlinux.inc svneol=native#text/plain
|
||||
packages/pthreads/src/pthrsnos.inc svneol=native#text/plain
|
||||
packages/pxlib/Makefile svneol=native#text/plain
|
||||
packages/pxlib/Makefile.fpc svneol=native#text/plain
|
||||
packages/pxlib/examples/Makefile svneol=native#text/plain
|
||||
packages/pxlib/examples/Makefile.fpc svneol=native#text/plain
|
||||
packages/pxlib/examples/ppxview.pp svneol=native#text/plain
|
||||
packages/pxlib/fpmake.pp svneol=native#text/plain
|
||||
packages/pxlib/src/pxlib.pp svneol=native#text/plain
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2008/10/22]
|
||||
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2008/12/12]
|
||||
#
|
||||
default: all
|
||||
MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded avr-embedded armeb-linux armeb-embedded
|
||||
@ -337,76 +337,76 @@ ifeq ($(FULL_TARGET),armeb-linux)
|
||||
override TARGET_UNITS+=pxlib
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-linux)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-win32)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-freebsd)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-beos)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netbsd)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-openbsd)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-darwin)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-linux)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-freebsd)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-netbsd)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-openbsd)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-linux)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-netbsd)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-darwin)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-linux)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-netbsd)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-linux)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-freebsd)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-darwin)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-linux)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-darwin)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-linux)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-darwin)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-linux)
|
||||
override TARGET_EXAMPLES+=ppxview
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
override INSTALL_FPCPACKAGE=y
|
||||
ifeq ($(FULL_TARGET),i386-linux)
|
||||
@ -2123,6 +2123,123 @@ endif
|
||||
fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
|
||||
fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
|
||||
fpc_makefiles: fpc_makefile fpc_makefile_dirs
|
||||
ifeq ($(FULL_TARGET),i386-linux)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-win32)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-freebsd)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-beos)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netbsd)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-openbsd)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-darwin)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-linux)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-freebsd)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-netbsd)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-openbsd)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-linux)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-netbsd)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-darwin)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-linux)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-netbsd)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-linux)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-freebsd)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-darwin)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-linux)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-darwin)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-linux)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-darwin)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-linux)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifdef TARGET_EXAMPLEDIRS_EXAMPLES
|
||||
examples_all:
|
||||
$(MAKE) -C examples all
|
||||
examples_debug:
|
||||
$(MAKE) -C examples debug
|
||||
examples_smart:
|
||||
$(MAKE) -C examples smart
|
||||
examples_release:
|
||||
$(MAKE) -C examples release
|
||||
examples_units:
|
||||
$(MAKE) -C examples units
|
||||
examples_examples:
|
||||
$(MAKE) -C examples examples
|
||||
examples_shared:
|
||||
$(MAKE) -C examples shared
|
||||
examples_install:
|
||||
$(MAKE) -C examples install
|
||||
examples_sourceinstall:
|
||||
$(MAKE) -C examples sourceinstall
|
||||
examples_exampleinstall:
|
||||
$(MAKE) -C examples exampleinstall
|
||||
examples_distinstall:
|
||||
$(MAKE) -C examples distinstall
|
||||
examples_zipinstall:
|
||||
$(MAKE) -C examples zipinstall
|
||||
examples_zipsourceinstall:
|
||||
$(MAKE) -C examples zipsourceinstall
|
||||
examples_zipexampleinstall:
|
||||
$(MAKE) -C examples zipexampleinstall
|
||||
examples_zipdistinstall:
|
||||
$(MAKE) -C examples zipdistinstall
|
||||
examples_clean:
|
||||
$(MAKE) -C examples clean
|
||||
examples_distclean:
|
||||
$(MAKE) -C examples distclean
|
||||
examples_cleanall:
|
||||
$(MAKE) -C examples cleanall
|
||||
examples_info:
|
||||
$(MAKE) -C examples info
|
||||
examples_makefiles:
|
||||
$(MAKE) -C examples makefiles
|
||||
examples:
|
||||
$(MAKE) -C examples all
|
||||
.PHONY: examples_all examples_debug examples_smart examples_release examples_units examples_examples examples_shared examples_install examples_sourceinstall examples_exampleinstall examples_distinstall examples_zipinstall examples_zipsourceinstall examples_zipexampleinstall examples_zipdistinstall examples_clean examples_distclean examples_cleanall examples_info examples_makefiles examples
|
||||
endif
|
||||
all: fpc_all
|
||||
debug: fpc_debug
|
||||
smart: fpc_smart
|
||||
@ -2138,7 +2255,7 @@ zipinstall: fpc_zipinstall
|
||||
zipsourceinstall: fpc_zipsourceinstall
|
||||
zipexampleinstall: fpc_zipexampleinstall
|
||||
zipdistinstall: fpc_zipdistinstall
|
||||
clean: fpc_clean
|
||||
clean: fpc_clean $(addsuffix _clean,$(TARGET_EXAMPLEDIRS))
|
||||
distclean: fpc_distclean
|
||||
cleanall: fpc_cleanall
|
||||
info: fpc_info
|
||||
|
@ -14,13 +14,13 @@ units_darwin=pxlib
|
||||
units_freebsd=pxlib
|
||||
units_openbsd=pxlib
|
||||
units_netbsd=pxlib
|
||||
examples_beos=ppxview
|
||||
examples_linux=ppxview
|
||||
examples_win32=ppxview
|
||||
examples_darwin=ppxview
|
||||
examples_freebsd=ppxview
|
||||
examples_openbsd=ppxview
|
||||
examples_netbsd=ppxview
|
||||
exampledirs_beos=examples
|
||||
exampledirs_linux=examples
|
||||
exampledirs_win32=examples
|
||||
exampledirs_darwin=examples
|
||||
exampledirs_freebsd=examples
|
||||
exampledirs_openbsd=examples
|
||||
exampledirs_netbsd=examples
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
1889
packages/pxlib/examples/Makefile
Normal file
1889
packages/pxlib/examples/Makefile
Normal file
File diff suppressed because it is too large
Load Diff
21
packages/pxlib/examples/Makefile.fpc
Normal file
21
packages/pxlib/examples/Makefile.fpc
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Makefile.fpc for pxlib units example
|
||||
#
|
||||
|
||||
[target]
|
||||
programs_beos=ppxview
|
||||
programs_linux=ppxview
|
||||
programs_win32=ppxview
|
||||
programs_darwin=ppxview
|
||||
programs_freebsd=ppxview
|
||||
programs_openbsd=ppxview
|
||||
programs_netbsd=ppxview
|
||||
|
||||
[require]
|
||||
packages=pxlib
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[default]
|
||||
fpcdir=../../..
|
Loading…
Reference in New Issue
Block a user