source: trunk/kBuild/tools/ALP.kmk@ 689

Last change on this file since 689 was 667, checked in by bird, 19 years ago

cleanup. PATH_DEV* -> PATH_DEVTOOLS*.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: ALP.kmk 667 2006-12-06 04:00:16Z bird $
2## @file
3#
4# kBuild Tool Config - ALP or later.
5#
6# Copyright (c) 2005-2006 knut st. osmundsen <bird-srcspam@anduin.net>
7#
8#
9# This file is part of kBuild.
10#
11# kBuild is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# kBuild is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with kBuild; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24#
25#
26
27TOOL_ALP := The IBM Assembly Language Processor
28
29# Tool Specific Properties
30ifndef PATH_TOOL_ALP
31 PATH_TOOL_ALP := $(sort $(wildcard $(PATH_DEVTOOLS_BLD)/alp/v*.*))
32 ifneq ($(PATH_TOOL_ALP),)
33 PATH_TOOL_ALP := $(call lastword,$(PATH_TOOL_ALP))
34 endif
35endif
36ifneq ($(PATH_TOOL_ALP),)
37 TOOL_ALP_AS ?= $(PATH_TOOL_ALP)/alp$(HOSTSUFF_EXE)
38else
39 TOOL_ALP_AS ?= alp$(HOSTSUFF_EXE)
40endif
41
42# General Properties used by kBuild
43TOOL_ALP_ASFLAGS ?= -Mb
44
45
46## Compile Assembly source.
47# @param $(target) Normalized main target name.
48# @param $(source) Source filename (relative).
49# @param $(obj) Object file name. This shall be (re)created by the compilation.
50# @param $(dep) Dependcy file. This shall be (re)created by the compilation.
51# @param $(flags) Flags.
52# @param $(defs) Definitions. No -D or something.
53# @param $(incs) Includes. No -I or something.
54# @param $(dirdep) Directory creation dependency.
55# @param $(deps) Other dependencies.
56#
57# @param $(outbase) Output basename (full). Use this for list files and such.
58# @param $(objsuff) Object suffix.
59TOOL_ALP_COMPILE_AS_OUTPUT = $(outbase).lst
60TOOL_ALP_COMPILE_AS_DEPEND =
61TOOL_ALP_COMPILE_AS_DEPORD =
62define TOOL_ALP_COMPILE_AS_CMDS
63 $(TOOL_ALP_AS)\
64 $(flags) $(addsuffix /,$(addprefix -I:, $(incs))) $(addprefix -D:, $(defs))\
65 $(source)\
66 -Fl:$(outbase).lst\
67 -Fd:$(dep)\
68 -Fo:$(obj)
69endef
70
Note: See TracBrowser for help on using the repository browser.