mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 16:09:23 +02:00
Added library support, and smartlinking
This commit is contained in:
parent
734a30e857
commit
313eb0443e
@ -37,6 +37,22 @@ CPU=i386
|
|||||||
#CPU=m68k
|
#CPU=m68k
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Do you want smartlinking enabled (YES/NO) ?
|
||||||
|
ifndef SMARTLINK
|
||||||
|
SMARTLINK=YES
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Name of library ?
|
||||||
|
# If this is set, all units will be put in the same library.
|
||||||
|
# If it is empty (default), the units will be left in separate files.
|
||||||
|
LIBNAME=
|
||||||
|
#LIBNAME=fpc
|
||||||
|
|
||||||
|
# Should the library be shared or static (only if LIBNAME is set).
|
||||||
|
# Set this to 'shared' or 'static'.
|
||||||
|
# Setting this to shared will disable smart linking.
|
||||||
|
LIBTYPE=shared
|
||||||
|
|
||||||
# What compiler to use ?
|
# What compiler to use ?
|
||||||
ifndef PP
|
ifndef PP
|
||||||
PP=ppc386
|
PP=ppc386
|
||||||
@ -53,8 +69,6 @@ ifndef PPUMOVE
|
|||||||
PPUMOVE=ppumove
|
PPUMOVE=ppumove
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Set this to 'shared' or 'static'
|
|
||||||
LIBTYPE=shared
|
|
||||||
|
|
||||||
# AOUT should be defined in main makefile.
|
# AOUT should be defined in main makefile.
|
||||||
# But you can set it here too.
|
# But you can set it here too.
|
||||||
@ -113,6 +127,28 @@ ifeq ($(LINK_TO_C),YES)
|
|||||||
override OPT:=$(OPT) -dCRTLIB
|
override OPT:=$(OPT) -dCRTLIB
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
# Smart linking requested ?
|
||||||
|
ifeq ($(SMARTLINK),YES)
|
||||||
|
# no use with shared libs.
|
||||||
|
ifneq ($(LIBNAME),)
|
||||||
|
ifneq ($(LIBTYPE),shared)
|
||||||
|
override OPT:=$(OPT) -Xl
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
override OPT:=$(OPT) -Xl
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(LIBNAME),)
|
||||||
|
override OPT:=$(OPT) -o$(LIBNAME)
|
||||||
|
ifeq ($(LIBTYPE),shared)
|
||||||
|
override OPT:=$(OPT) -CD
|
||||||
|
else
|
||||||
|
override OPT:=$(OPT) -CS
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Define Linux Units
|
# Define Linux Units
|
||||||
SYSTEMPPU=syslinux$(PPUEXT)
|
SYSTEMPPU=syslinux$(PPUEXT)
|
||||||
OBJECTS=strings linux objpas sysutils math\
|
OBJECTS=strings linux objpas sysutils math\
|
||||||
@ -296,7 +332,10 @@ include $(CFG)/makefile.def
|
|||||||
|
|
||||||
#
|
#
|
||||||
# $Log$
|
# $Log$
|
||||||
# Revision 1.17 1998-08-15 17:08:09 peter
|
# Revision 1.18 1998-08-16 10:22:57 michael
|
||||||
|
# Added library support, and smartlinking
|
||||||
|
#
|
||||||
|
# Revision 1.17 1998/08/15 17:08:09 peter
|
||||||
# + support for cprt0.o
|
# + support for cprt0.o
|
||||||
#
|
#
|
||||||
#
|
#
|
Loading…
Reference in New Issue
Block a user