1
##############################################################################
3
# Copyright (C) 2002 - 2008 by Vivante Corp.
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public Lisence as published by
7
# the Free Software Foundation; either version 2 of the license, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public Lisence for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not write to the Free Software
17
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
##############################################################################
24
# This file is a part of Vivante software stack build environment for Linux.
25
# It defines the rules necessary to build the kernel HAL driver.
29
################################################################################
30
# Include common definitions.
32
include $(AQROOT)/GNUmakefile.common
35
################################################################################
36
# Define a shortcut for the main target.
38
TARGET_OUTPUT = $(OBJ_DIR)/libHALKernel.a
41
################################################################################
42
# Include common targets.
44
include $(AQROOT)/GNUmakefile.source
47
################################################################################
48
# Supply additional include directories.
50
INCLUDE += -I$(AQROOT)/hal/inc
51
INCLUDE += -I$(AQROOT)/hal/user
52
INCLUDE += -I$(AQARCH)/hal/kernel
57
################################################################################
58
# Describe object files.
60
OBJECTS = $(OBJ_DIR)/Command.o \
68
################################################################################
69
# Describe dependencies.
71
$(TARGET_OUTPUT): $(OBJ_DIR) $(PRE_COMPILED) $(OBJECTS)
72
$(AR) -r $(TARGET_OUTPUT) $(OBJECTS)
73
$(RANLIB) $(TARGET_OUTPUT)