# Makefile - makefile for target/src/ostool/loader
#
# Copyright (c) 2003-2006, 2009-2010 Wind River Systems, Inc.
#
# The right to copy, distribute, modify or otherwise make use of this software
# may be licensed only pursuant to the terms of an applicable Wind River
# license agreement.
#
# modification history
# --------------------
# 01k,09sep10,jpb  Add loadFuncBind.o
# 01j,19jan10,rlp  Added loadHost and unldHost object files for LP64.
# 01i,25sep09,v_r  Added moduleFuncBind.c and unldFuncBind.c to the build.
# 01h,15jul09,v_r  Added module tag checker to the build.
# 01g,16jan06,v_r  Added loader/unloader hook facility files.
# 01f,08sep05,v_r  Added cplusLoad.c to the list of objects files to build.
# 01e,28jan05,dbt  Added loadElfUtilLib.o to build
# 01d,23sep04,bpn  Moved moduleShellCmd.c and unloadShellCmd.c under
#                  ostool/shell
# 01c,02jun04,bpn  Added moduleShellCmd.o and unloadShellCmd.o build.
# 01b,31mar04,jn   Change name of rtpLoadLib -> loadRtpLib
# 01a,04dec03,jn   Written based on target/src/ostool/Makefile
#
# DESCRIPTION
# This file contains the makefile rules for building the loader and module
# libraries and the loader component of the rtp library.
#

TGT_DIR = $(WIND_BASE)/target

LIB_BASE_NAME = os

# Including defs.library to see if _WRS_CONFIG_LP64 is defined.
# It must be after LIB_BASE_NAME
include $(TGT_DIR)/h/make/defs.library

DOC_FILES = loadLib.c moduleLib.c unldLib.c

INTERNAL_DOC_FILES = moduleHookLib.c loadModuleTagsLib.c

OBJS=	cplusLoad.o loadElfLib.o loadElfUtilLib.o loadFileLib.o loadFuncBind.o \
        loadLib.o loadModuleTagsLib.o loadRtpLib.o loadShareLib.o \
        moduleHookLib.o moduleFuncBind.o moduleLib.o moduleShow.o \
        unldFuncBind.o unldLib.o

ifdef _WRS_CONFIG_LP64
OBJS += loadHost.o unldHost.o
endif

include $(TGT_DIR)/h/make/rules.library

# end of target/src/ostool/loader/Makefile
