|
Packit Service |
3e823c |
#ident "@(#)rules.shl 1.6 04/01/23 "
|
|
Packit Service |
3e823c |
###########################################################################
|
|
Packit Service |
3e823c |
# Written 1996 by J. Schilling
|
|
Packit Service |
3e823c |
###########################################################################
|
|
Packit Service |
3e823c |
#
|
|
Packit Service |
3e823c |
# Rules for shared (dynamic) libraries
|
|
Packit Service |
3e823c |
#
|
|
Packit Service |
3e823c |
# SUBARCHDIR must be before any other definitions
|
|
Packit Service |
3e823c |
#
|
|
Packit Service |
3e823c |
###########################################################################
|
|
Packit Service |
3e823c |
# This program is free software; you can redistribute it and/or modify
|
|
Packit Service |
3e823c |
# it under the terms of the GNU General Public License as published by
|
|
Packit Service |
3e823c |
# the Free Software Foundation; either version 2, or (at your option)
|
|
Packit Service |
3e823c |
# any later version.
|
|
Packit Service |
3e823c |
#
|
|
Packit Service |
3e823c |
# This program is distributed in the hope that it will be useful,
|
|
Packit Service |
3e823c |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
3e823c |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
3e823c |
# GNU General Public License for more details.
|
|
Packit Service |
3e823c |
#
|
|
Packit Service |
3e823c |
# You should have received a copy of the GNU General Public License along with
|
|
Packit Service |
3e823c |
# this program; see the file COPYING. If not, write to the Free Software
|
|
Packit Service |
3e823c |
# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
Packit Service |
3e823c |
###########################################################################
|
|
Packit Service |
3e823c |
|
|
Packit Service |
3e823c |
SUBARCHDIR= /pic
|
|
Packit Service |
3e823c |
COPTS += $(COPTDYN)
|
|
Packit Service |
3e823c |
LDOPTS += $(LDOPTDYN)
|
|
Packit Service |
3e823c |
|
|
Packit Service |
3e823c |
###########################################################################
|
|
Packit Service |
3e823c |
include $(SRCROOT)/$(RULESDIR)/rules.obj
|
|
Packit Service |
3e823c |
###########################################################################
|
|
Packit Service |
3e823c |
TARGET= $(LIB_PREFIX)$(TARGETLIB)$(SHL_SUFFIX)
|
|
Packit Service |
3e823c |
TARGET_BASE= $(LIB_PREFIX)$(TARGETLIB)
|
|
Packit Service |
3e823c |
TARGET_PATH= $(OLIBSDIR)
|
|
Packit Service |
3e823c |
PTARGET= $(OLIBSDIR)/$(TARGET)
|
|
Packit Service |
3e823c |
PTARGET_BASE= $(OLIBSDIR)/$(TARGET_BASE)
|
|
Packit Service |
3e823c |
|
|
Packit Service |
3e823c |
_INSMODEI= $(_UNIQ)$(INSMODE)
|
|
Packit Service |
3e823c |
__INSMODEI= $(_INSMODEI:$(_UNIQ)=$(INSMODEF))
|
|
Packit Service |
3e823c |
INSMODEI= $(__INSMODEI:$(_UNIQ)%=%)
|
|
Packit Service |
3e823c |
|
|
Packit Service |
3e823c |
all: $(TARGET_PATH) $(PTARGET)
|
|
Packit Service |
3e823c |
|
|
Packit Service |
3e823c |
$(TARGET_PATH):
|
|
Packit Service |
3e823c |
$(MKDIR) -p $@
|
|
Packit Service |
3e823c |
|
|
Packit Service |
3e823c |
$(PTARGET): $(OFILES)
|
|
Packit Service |
3e823c |
$(DYNLD) -o $@ $(LDFLAGS) $(LDLIBS) `$(LORDER) $(POFILES) | $(TSORT)`
|
|
Packit Service |
3e823c |
-$(LNDYNLIB)
|
|
Packit Service |
3e823c |
|
|
Packit Service |
3e823c |
# @$(SYMLINK) $(TARGET) $(PTARGET_BASE).so
|
|
Packit Service |
3e823c |
|
|
Packit Service |
3e823c |
###########################################################################
|
|
Packit Service |
3e823c |
include $(SRCROOT)/$(RULESDIR)/rules.clr
|
|
Packit Service |
3e823c |
include $(SRCROOT)/$(RULESDIR)/rules.ins
|
|
Packit Service |
3e823c |
include $(SRCROOT)/$(RULESDIR)/rules.tag
|
|
Packit Service |
3e823c |
include $(SRCROOT)/$(RULESDIR)/rules.hlp
|
|
Packit Service |
3e823c |
include $(SRCROOT)/$(RULESDIR)/rules.dep
|
|
Packit Service |
3e823c |
###########################################################################
|