############################################################################
# Copyright (c) 2001-2002 Compaq Computer Corporation, ALL RIGHTS RESERVED.
# Compaq Confidential
############################################################################
#
#  $RCSfile: Makefile.univ,v $
#
#  $Revision: 1.2 $
#
#  $Author: jlong $
#
#  $Date: 2002/01/25 22:35:29 $
#
#############################################################################/

#rcsid = "$RCSfile: Makefile.univ,v $ $Revision: 1.2 $ COMPAQ EFS $Date: 2002/01/25 22:35:29 $"

##############################
DRIVER          = cpqhealth
DRIVERLIB       = lib${DRIVER}.o

##############################
#  Tools
##############################
CC=gcc
ASM=as
LD=ld

##############################
# Directory Structure        #
##############################

OS_DIR		= LINUX

include $(OS_DIR)/os.mk		#get OS_INCLUDE and OS_OFILES


################################
# constuct CFLAGS              #
################################

MKFLAGS =

INCLUDE	= -nostdinc $(CPQINCL) $(OS_INCLUDE) $(COMMON_INCLUDE)

DFLAGS	= -DUNIX

CFLAGS =  -Wall -O2 $(MKFLAGS) $(DFLAGS) $(INCLUDE)

OFILES	= $(OS_OFILES) 

custom: clean $(OS_OFILES) ${DRIVERLIB}
	$(LD) -r -o $(DRIVER) ${DRIVERLIB} $(OS_OFILES)

clean:
	rm -f $(OS_OFILES) $(DRIVER)
