source: trunk/libc/src/libos2/Makefile.kmk@ 3845

Last change on this file since 3845 was 3845, checked in by bird, 11 years ago

svn:eol-style: native

  • Property svn:eol-style set to native
File size: 4.4 KB
Line 
1# $Id: $
2## @file
3#
4# kBuild Sub-Makefile for kLIBC - src/libos2 - The OS/2 import and thunker libraries.
5#
6# Copyright (c) 2006 knut st. osmundsen <bird@anduin.net>
7#
8#
9# This file is part of kLIBC.
10#
11# kLIBC 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# kLIBC 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 kLIBC; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24#
25#
26
27# include common stuff.
28DEPTH ?= ../../..
29SUB_DEPTH = ../..
30include $(PATH_KBUILD)/subheader.kmk
31ifeq ($(BUILD_TARGET),os2)
32
33#
34# libos2
35#
36LIBRARIES += libos2
37libos2_TEMPLATE = libc
38libos2_DEFS = NO_INCL_SAFE_HIMEM_WRAPPERS
39libos2_SOURCES := \
40 $(wildcard $(PATH_LIBC_SRC)/libos2/*.c) \
41 $(wildcard $(PATH_LIBC_SRC)/libos2/safe/*.c) \
42 $(wildcard $(PATH_LIBC_SRC)/libos2/*.imp)
43
44# configure the variants. */
45$(call LIBC_CONFIG_VARIANT_LIBS_OTHER,libos2)
46
47#
48# Lazy libs.
49#
50TEMPLATE_libos2lazy = libos2 lazy import template.
51TEMPLATE_libos2lazy_EXTENDS = libc
52TEMPLATE_libos2lazy_TOOL = libos2lazyimp
53TEMPLATE_libos2lazy_TOOL.os2 = libos2lazyimp
54
55TOOL_libos2lazyimp = libos2 ad hoc lazy import tool
56TOOL_libos2lazyimp_ARLIBSUFF = .a
57TOOL_libos2lazyimp_LINK_LIBRARY_OUTPUT =
58TOOL_libos2lazyimp_LINK_LIBRARY_DEPEND = $(othersrc)
59TOOL_libos2lazyimp_LINK_LIBRARY_DEPORD =
60define TOOL_libos2lazyimp_LINK_LIBRARY_CMDS
61 emximp -l -l -o $(out) $(othersrc)
62endef
63
64LIBRARIES += libos2_unicode_lazy
65libos2_unicode_lazy_TEMPLATE = libos2lazy
66libos2_unicode_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/unicode.imp
67
68LIBRARIES += libos2_pmwin_lazy
69libos2_pmwin_lazy_TEMPLATE = libos2lazy
70libos2_pmwin_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/win.imp
71
72LIBRARIES += libos2_pmwp_lazy
73libos2_pmwp_lazy_TEMPLATE = libos2lazy
74libos2_pmwp_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/wp.imp
75
76LIBRARIES += libos2_pmspl_lazy
77libos2_pmspl_lazy_TEMPLATE = libos2lazy
78libos2_pmspl_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/spl.imp
79
80LIBRARIES += libos2_som_lazy
81libos2_som_lazy_TEMPLATE = libos2lazy
82libos2_som_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/som.imp
83
84LIBRARIES += libos2_pmshapi_lazy
85libos2_pmshapi_lazy_TEMPLATE = libos2lazy
86libos2_pmshapi_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/shl.imp
87
88LIBRARIES += libos2_rexx_lazy
89libos2_rexx_lazy_TEMPLATE = libos2lazy
90libos2_rexx_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/rexx.imp
91
92LIBRARIES += libos2_rexxapi_lazy
93libos2_rexxapi_lazy_TEMPLATE = libos2lazy
94libos2_rexxapi_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/rexxapi.imp
95
96LIBRARIES += libos2_pmpic_lazy
97libos2_pmpic_lazy_TEMPLATE = libos2lazy
98libos2_pmpic_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/pic.imp
99
100LIBRARIES += libos2_helpmgr_lazy
101libos2_helpmgr_lazy_TEMPLATE = libos2lazy
102libos2_helpmgr_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/help.imp
103
104LIBRARIES += libos2_pmgpi_lazy
105libos2_pmgpi_lazy_TEMPLATE = libos2lazy
106libos2_pmgpi_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/gpi.imp
107
108LIBRARIES += libos2_pmdrag_lazy
109libos2_pmdrag_lazy_TEMPLATE = libos2lazy
110libos2_pmdrag_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/drag.imp
111
112LIBRARIES += libos2_pmctls_lazy
113libos2_pmctls_lazy_TEMPLATE = libos2lazy
114libos2_pmctls_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/ctls.imp
115
116LIBRARIES += libos2_pm_lazy
117libos2_pm_lazy_TEMPLATE = libos2lazy
118libos2_pm_lazy_SOURCES = \
119 $(PATH_LIBC_SRC)/libos2/win.imp \
120 $(PATH_LIBC_SRC)/libos2/wp.imp \
121 $(PATH_LIBC_SRC)/libos2/spl.imp \
122 $(PATH_LIBC_SRC)/libos2/shl.imp \
123 $(PATH_LIBC_SRC)/libos2/pic.imp \
124 $(PATH_LIBC_SRC)/libos2/help.imp \
125 $(PATH_LIBC_SRC)/libos2/gpi.imp \
126 $(PATH_LIBC_SRC)/libos2/drag.imp \
127 $(PATH_LIBC_SRC)/libos2/ctls.imp
128
129LIBRARIES += libos2_dos_lazy
130libos2_dos_lazy_TEMPLATE = libos2lazy
131libos2_dos_lazy_SOURCES = \
132 $(PATH_LIBC_SRC)/libos2/dos.imp \
133 $(PATH_LIBC_SRC)/libos2/ses.imp \
134 $(PATH_LIBC_SRC)/libos2/que.imp \
135 $(PATH_LIBC_SRC)/libos2/nls.imp \
136 $(PATH_LIBC_SRC)/libos2/msg.imp
137
138LIBRARIES += libos2_lazy
139libos2_lazy_TEMPLATE = libos2lazy
140libos2_lazy_SOURCES = \
141 $(filter-out %-data.imp,$(wildcard $(PATH_LIBC_SRC)/libos2/*.imp))
142
143endif # BUILD_TARGET == os2
144# generate rules
145include $(PATH_KBUILD)/subfooter.kmk
146
Note: See TracBrowser for help on using the repository browser.