[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Understanding the Diagnostic Subsystem for AIX

Example TU Makefiles

#
#   COMPONENT_NAME: (TU_DEVICE)
#
#   FUNCTIONS: EXAMPLE TU LIBRARY MAKEFILE
#
#
VPATH           = ${MAKETOP}/bos/kernext/exp
# The following three lines are for building a
# Second Level Interrupt Handler.
SUBDIRS         = slih
EXPINC_SUBDIRS  = slih
EXPLIB_SUBDIRS  = slih
PROGRAMS         = libtu_device
# Flag to the linker that exectu is the main entry point.
libtu_device_LDFLAGS         += -e exectu
# If using PDIAGEX, the diagnostic kernel extension
libtu_device_IMPORTS = -bI:pdiagex.exp
#
LIBS             = -ldiag -lpdiag
# Install list and directory.
ILIST            = ${PROGRAMS}
IDIR             = /usr/lpp/diagnostics/lib/
OFILES           = device_exectu.o device_interface.o
.include <${RULES_MK}>
 
#
#Using command line make:
#
libtu_device: device_exectu.o device_interface.o
        ld -o tu /lib/crt0.o device_exectu.o device_interface.o -lpdiag -lc -e exectu
device_exectu.o: device_exectu.c
        cc -c -I. device_exectu.c
device_interface.o: device_interface.c
        cc -c -I. device_interface.c
 

[ Previous | Next | Contents | Home | Search ]