mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 10:19:15 +02:00
fixed startlazarus compile under MacOSX
git-svn-id: trunk@5882 -
This commit is contained in:
parent
fe2b26de51
commit
62cd2ac165
17
Makefile
17
Makefile
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Don't edit, this file is generated by FPCMake Version 1.1 [2004/08/27]
|
# Don't edit, this file is generated by FPCMake Version 1.1 [2004/08/08]
|
||||||
#
|
#
|
||||||
default: all
|
default: all
|
||||||
MAKEFILETARGETS=linux go32v2 win32 os2 freebsd beos netbsd amiga atari sunos qnx netware openbsd wdosx palmos macos darwin emx watcom morphos
|
MAKEFILETARGETS=linux go32v2 win32 os2 freebsd beos netbsd amiga atari sunos qnx netware openbsd wdosx palmos macos darwin emx watcom morphos
|
||||||
@ -1832,7 +1832,7 @@ endif
|
|||||||
.PHONY: fpc_examples
|
.PHONY: fpc_examples
|
||||||
ifneq ($(TARGET_EXAMPLES),)
|
ifneq ($(TARGET_EXAMPLES),)
|
||||||
HASEXAMPLES=1
|
HASEXAMPLES=1
|
||||||
override EXAMPLESOURCEFILES:=$(wildcard $(addsuffix .pp,$(TARGET_EXAMPLES)) $(addsuffix .pas,$(TARGET_EXAMPLES)) $(addsuffix .lpr,$(TARGET_EXAMPLES)) $(addsuffix .dpr,$(TARGET_EXAMPLES)))
|
override EXAMPLESOURCEFILES:=$(wildcard $(addsuffix .pp,$(TARGET_EXAMPLES)) $(addsuffix .pas,$(TARGET_EXAMPLES)) $(addsuffix .dpr,$(TARGET_EXAMPLES)))
|
||||||
override EXAMPLEFILES:=$(addsuffix $(EXEEXT),$(TARGET_EXAMPLES))
|
override EXAMPLEFILES:=$(addsuffix $(EXEEXT),$(TARGET_EXAMPLES))
|
||||||
override EXAMPLEOFILES:=$(addsuffix $(OEXT),$(TARGET_EXAMPLES)) $(addprefix $(STATICLIBPREFIX),$(addsuffix $(STATICLIBEXT),$(TARGET_EXAMPLES)))
|
override EXAMPLEOFILES:=$(addsuffix $(OEXT),$(TARGET_EXAMPLES)) $(addprefix $(STATICLIBPREFIX),$(addsuffix $(STATICLIBEXT),$(TARGET_EXAMPLES)))
|
||||||
override CLEANEXEFILES+=$(EXAMPLEFILES) $(EXAMPLEOFILES)
|
override CLEANEXEFILES+=$(EXAMPLEFILES) $(EXAMPLEOFILES)
|
||||||
@ -1857,7 +1857,7 @@ fpc_debug:
|
|||||||
$(MAKE) all DEBUG=1
|
$(MAKE) all DEBUG=1
|
||||||
fpc_release:
|
fpc_release:
|
||||||
$(MAKE) all RELEASE=1
|
$(MAKE) all RELEASE=1
|
||||||
.SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
|
.SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .dpr .pp .rc .res
|
||||||
%$(PPUEXT): %.pp
|
%$(PPUEXT): %.pp
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
$(EXECPPAS)
|
$(EXECPPAS)
|
||||||
@ -1870,9 +1870,6 @@ fpc_release:
|
|||||||
%$(EXEEXT): %.pas
|
%$(EXEEXT): %.pas
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
$(EXECPPAS)
|
$(EXECPPAS)
|
||||||
%$(EXEEXT): %.lpr
|
|
||||||
$(COMPILER) $<
|
|
||||||
$(EXECPPAS)
|
|
||||||
%$(EXEEXT): %.dpr
|
%$(EXEEXT): %.dpr
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
$(EXECPPAS)
|
$(EXECPPAS)
|
||||||
@ -1880,7 +1877,6 @@ fpc_release:
|
|||||||
windres -i $< -o $@
|
windres -i $< -o $@
|
||||||
vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
|
vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
|
||||||
vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
|
vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
|
||||||
vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
|
|
||||||
vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
|
vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
|
||||||
vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
|
vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
|
||||||
.PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
|
.PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
|
||||||
@ -2529,7 +2525,11 @@ endif
|
|||||||
idepkg:
|
idepkg:
|
||||||
$(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT) OPT='$(OPT) $(LAZARUS_OPT) @$(LAZARUS_IDE_CONFIG)'
|
$(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT) OPT='$(OPT) $(LAZARUS_OPT) @$(LAZARUS_IDE_CONFIG)'
|
||||||
starter: lcl
|
starter: lcl
|
||||||
$(MAKE) startlazarus$(EXEEXT)
|
ifeq ($(LAZARUS_OPT),)
|
||||||
|
$(MAKE) --assume-new=startlazarus.pp startlazarus$(EXEEXT)
|
||||||
|
else
|
||||||
|
$(MAKE) --assume-new=startlazarus.pp startlazarus$(EXEEXT) OPT='$(OPT) $(LAZARUS_OPT)'
|
||||||
|
endif
|
||||||
tools: lcl components
|
tools: lcl components
|
||||||
$(MAKE) -C tools
|
$(MAKE) -C tools
|
||||||
all: lcl components packager/registration ideintf designer packager ide starter
|
all: lcl components packager/registration ideintf designer packager ide starter
|
||||||
@ -2553,3 +2553,4 @@ clean: cleanall cleanide
|
|||||||
purge: cleanall cleanide
|
purge: cleanall cleanide
|
||||||
$(MAKE) -C examples clean
|
$(MAKE) -C examples clean
|
||||||
$(MAKE) -C tools clean
|
$(MAKE) -C tools clean
|
||||||
|
$(DEL) startlazarus$(EXEEXT)
|
||||||
|
18
Makefile.fpc
18
Makefile.fpc
@ -42,6 +42,7 @@ destdir=$(BASEDIR)/dist
|
|||||||
|
|
||||||
[prerules]
|
[prerules]
|
||||||
RCPP?=$(strip $(firstword $(wildcard $(addsuffix /cpp$(SRCEXEEXT), $(SEARCHPATH)))))
|
RCPP?=$(strip $(firstword $(wildcard $(addsuffix /cpp$(SRCEXEEXT), $(SEARCHPATH)))))
|
||||||
|
#
|
||||||
# LCL Platform
|
# LCL Platform
|
||||||
ifndef LCL_PLATFORM
|
ifndef LCL_PLATFORM
|
||||||
ifeq ($(OS_TARGET),win32)
|
ifeq ($(OS_TARGET),win32)
|
||||||
@ -52,10 +53,12 @@ override COMPILER_UNITDIR+=lcl/nonwin32
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
export LCL_PLATFORM
|
export LCL_PLATFORM
|
||||||
|
#
|
||||||
# LibPaths
|
# LibPaths
|
||||||
ifeq ($(OS_TARGET),darwin)
|
ifeq ($(OS_TARGET),darwin)
|
||||||
LAZARUS_LIBPATHS=-Fl/usr/X11R6/lib -Fl/sw/lib
|
LAZARUS_LIBPATHS=-Fl/usr/X11R6/lib -Fl/sw/lib
|
||||||
endif
|
endif
|
||||||
|
#
|
||||||
# user config
|
# user config
|
||||||
ifndef LAZARUS_CONFIG_DIR
|
ifndef LAZARUS_CONFIG_DIR
|
||||||
ifeq ($(OS_TARGET),win32)
|
ifeq ($(OS_TARGET),win32)
|
||||||
@ -65,10 +68,12 @@ LAZARUS_CONFIG_DIR=$(HOME)/.lazarus
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
export LAZARUS_CONFIG_DIR
|
export LAZARUS_CONFIG_DIR
|
||||||
|
#
|
||||||
# idemake.cfg
|
# idemake.cfg
|
||||||
LAZARUS_IDE_CONFIG=$(LAZARUS_CONFIG_DIR)/idemake.cfg
|
LAZARUS_IDE_CONFIG=$(LAZARUS_CONFIG_DIR)/idemake.cfg
|
||||||
LAZARUS_OPT=$(LAZARUS_LIBPATHS)
|
LAZARUS_OPT=$(LAZARUS_LIBPATHS)
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
[rules]
|
[rules]
|
||||||
.PHONY: lcl components packager/registration ideintf packager ide idepkg starter tools all clean cleanide purge
|
.PHONY: lcl components packager/registration ideintf packager ide idepkg starter tools all clean cleanide purge
|
||||||
.SUFFIXES: .rc .res
|
.SUFFIXES: .rc .res
|
||||||
@ -76,6 +81,7 @@ LAZARUS_OPT=$(LAZARUS_LIBPATHS)
|
|||||||
%.res: %.rc
|
%.res: %.rc
|
||||||
windres -i $< -o $@ --preprocessor $(RCPP)
|
windres -i $< -o $@ --preprocessor $(RCPP)
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
ide:
|
ide:
|
||||||
ifeq ($(OS_TARGET), win32)
|
ifeq ($(OS_TARGET), win32)
|
||||||
$(MAKE) lazarus.res
|
$(MAKE) lazarus.res
|
||||||
@ -86,17 +92,26 @@ else
|
|||||||
$(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT) OPT='$(OPT) $(LAZARUS_OPT)'
|
$(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT) OPT='$(OPT) $(LAZARUS_OPT)'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
idepkg:
|
idepkg:
|
||||||
$(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT) OPT='$(OPT) $(LAZARUS_OPT) @$(LAZARUS_IDE_CONFIG)'
|
$(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT) OPT='$(OPT) $(LAZARUS_OPT) @$(LAZARUS_IDE_CONFIG)'
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
starter: lcl
|
starter: lcl
|
||||||
$(MAKE) startlazarus$(EXEEXT)
|
ifeq ($(LAZARUS_OPT),)
|
||||||
|
$(MAKE) --assume-new=startlazarus.pp startlazarus$(EXEEXT)
|
||||||
|
else
|
||||||
|
$(MAKE) --assume-new=startlazarus.pp startlazarus$(EXEEXT) OPT='$(OPT) $(LAZARUS_OPT)'
|
||||||
|
endif
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
tools: lcl components
|
tools: lcl components
|
||||||
$(MAKE) -C tools
|
$(MAKE) -C tools
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
all: lcl components packager/registration ideintf designer packager ide starter
|
all: lcl components packager/registration ideintf designer packager ide starter
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
cleanide:
|
cleanide:
|
||||||
$(DEL) $(wildcard *$(OEXT))
|
$(DEL) $(wildcard *$(OEXT))
|
||||||
$(DEL) $(wildcard *$(PPUEXT))
|
$(DEL) $(wildcard *$(PPUEXT))
|
||||||
@ -119,6 +134,7 @@ clean: cleanall cleanide
|
|||||||
purge: cleanall cleanide
|
purge: cleanall cleanide
|
||||||
$(MAKE) -C examples clean
|
$(MAKE) -C examples clean
|
||||||
$(MAKE) -C tools clean
|
$(MAKE) -C tools clean
|
||||||
|
$(DEL) startlazarus$(EXEEXT)
|
||||||
|
|
||||||
#install: $(INSTALLTARGET) $(addsuffix _install,$(TARGET_DIRS))
|
#install: $(INSTALLTARGET) $(addsuffix _install,$(TARGET_DIRS))
|
||||||
# end.
|
# end.
|
||||||
|
Loading…
Reference in New Issue
Block a user