Makefile Source
Here is an example of what a common source 32-bit and 64-bit SLIH
Makefile might look like:
Note: Replace the environment variables and file
names with your own names to customize this example for your own
use.
# @(#)17 1.1 src/idd/en_US/aixprggd/diagunsd/TU_64bit_port.htm,
iddiagunsd, idd500 5/23/00 13:54:31
#
.include <${MAKETOP}bos/kernext/Kernext.mk>
TU_VPATH = ${MAKETOP}/bos/diag/tu/tu_dir
VPATH = ${MAKETOP}bos/kernel/exp:${MAKETOP}bos/kernext/exp:$TU_VPATH
# 32-bit version of load object
#
KERNEL_EXT = your_intr
# 64-bit version of load object
#
KERNEL_EXT64 = your_intr64
IDIR = /usr/lpp/diagnostics/slih/
# install list containing 32-bit and 64-bit version
#
ILIST = your_intr your_intr64
OPT_LEVEL = -qlist -qsource
# entry point, import and export files for 32-bit version
#
your_intr_DEPENDS = your_intr.exp
your_intr_ENTRYPOINT = your_interrupt
your_intr_IMPORTS = -bI:pdiagex.exp
your_intr_EXPORTS = -bE:your_intr.exp
# entry point, import and export files for 64-bit version
# (common with 32-bit version)
your_intr64_DEPENDS = your_intr.exp
your_intr64_ENTRYPOINT = your_interrupt
your_intr64_IMPORTS = -bI:pdiagex.exp \
pdiagex64.exp
your_intr64_EXPORTS = -bE:your_intr.exp
# object list definition for 32-bit version
#
your_intr_OFILES = your_intr.o
# object list definition for 64-bit version (common objects
# across 32-bit and 64-bit versions), with 64-bit objects
# renamed to .64o
#
your_intr64_OFILES = your_intr.64o
INCFLAGS = -I${MAKETOP}/bos/diag/tu/tu_dir \
-I${MAKETOP}bos/usr/include
LIBS = ${KERNEXT_LIBS}
.include <${RULES_MK}>