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

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

Configured lazy import libs.

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
31
32
33#
34# libos2
35#
36LIBRARIES += libos2
37libos2_TEMPLATE = libc
38libos2_SOURCES := \
39 $(wildcard $(PATH_LIBC_SRC)/libos2/*.c) \
40 $(wildcard $(PATH_LIBC_SRC)/libos2/safe/*.c) \
41 $(wildcard $(PATH_LIBC_SRC)/libos2/*.imp)
42
43$(call LIBC_CONFIG_VARIANT_LIBS_OTHERS,libos2)
44
45#
46# Lazy libs.
47#
48TEMPLATE_libos2lazy = libos2 lazy import template.
49TEMPLATE_libos2lazy_EXTENDS = libc
50TEMPLATE_libos2lazy_TOOL = libos2lazyimp
51TEMPLATE_libos2lazy_TOOL.os2 = libos2lazyimp
52
53TOOL_libos2lazyimp = libos2 ad hoc lazy import tool
54TOOL_libos2lazyimp_ARLIBSUFF = .a
55TOOL_libos2lazyimp_LINK_LIBRARY_OUTPUT =
56TOOL_libos2lazyimp_LINK_LIBRARY_DEPEND = $(othersrc)
57TOOL_libos2lazyimp_LINK_LIBRARY_DEPORD =
58define TOOL_libos2lazyimp_LINK_LIBRARY_CMDS
59 emximp -l -l -o $(out) $(othersrc)
60endef
61
62LIBRARIES += libos2_unicode_lazy
63libos2_unicode_lazy_TEMPLATE = libos2lazy
64libos2_unicode_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/unicode.imp
65
66LIBRARIES += libos2_pmwin_lazy
67libos2_pmwin_lazy_TEMPLATE = libos2lazy
68libos2_pmwin_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/win.imp
69
70LIBRARIES += libos2_pmwp_lazy
71libos2_pmwp_lazy_TEMPLATE = libos2lazy
72libos2_pmwp_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/wp.imp
73
74LIBRARIES += libos2_pmspl_lazy
75libos2_pmspl_lazy_TEMPLATE = libos2lazy
76libos2_pmspl_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/spl.imp
77
78LIBRARIES += libos2_som_lazy
79libos2_som_lazy_TEMPLATE = libos2lazy
80libos2_som_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/som.imp
81
82LIBRARIES += libos2_pmshapi_lazy
83libos2_pmshapi_lazy_TEMPLATE = libos2lazy
84libos2_pmshapi_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/shl.imp
85
86LIBRARIES += libos2_rexx_lazy
87libos2_rexx_lazy_TEMPLATE = libos2lazy
88libos2_rexx_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/rexx.imp
89
90LIBRARIES += libos2_rexxapi_lazy
91libos2_rexxapi_lazy_TEMPLATE = libos2lazy
92libos2_rexxapi_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/rexxapi.imp
93
94LIBRARIES += libos2_pmpic_lazy
95libos2_pmpic_lazy_TEMPLATE = libos2lazy
96libos2_pmpic_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/pic.imp
97
98LIBRARIES += libos2_helpmgr_lazy
99libos2_helpmgr_lazy_TEMPLATE = libos2lazy
100libos2_helpmgr_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/help.imp
101
102LIBRARIES += libos2_pmgpi_lazy
103libos2_pmgpi_lazy_TEMPLATE = libos2lazy
104libos2_pmgpi_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/gpi.imp
105
106LIBRARIES += libos2_pmdrag_lazy
107libos2_pmdrag_lazy_TEMPLATE = libos2lazy
108libos2_pmdrag_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/drag.imp
109
110LIBRARIES += libos2_pmctls_lazy
111libos2_pmctls_lazy_TEMPLATE = libos2lazy
112libos2_pmctls_lazy_SOURCES = $(PATH_LIBC_SRC)/libos2/ctls.imp
113
114LIBRARIES += libos2_pm_lazy
115libos2_pm_lazy_TEMPLATE = libos2lazy
116libos2_pm_lazy_SOURCES = \
117 $(PATH_LIBC_SRC)/libos2/win.imp \
118 $(PATH_LIBC_SRC)/libos2/wp.imp \
119 $(PATH_LIBC_SRC)/libos2/spl.imp \
120 $(PATH_LIBC_SRC)/libos2/shl.imp \
121 $(PATH_LIBC_SRC)/libos2/pic.imp \
122 $(PATH_LIBC_SRC)/libos2/help.imp \
123 $(PATH_LIBC_SRC)/libos2/gpi.imp \
124 $(PATH_LIBC_SRC)/libos2/drag.imp \
125 $(PATH_LIBC_SRC)/libos2/ctls.imp
126
127LIBRARIES += libos2_dos_lazy
128libos2_dos_lazy_TEMPLATE = libos2lazy
129libos2_dos_lazy_SOURCES = \
130 $(PATH_LIBC_SRC)/libos2/dos.imp \
131 $(PATH_LIBC_SRC)/libos2/ses.imp \
132 $(PATH_LIBC_SRC)/libos2/que.imp \
133 $(PATH_LIBC_SRC)/libos2/nls.imp \
134 $(PATH_LIBC_SRC)/libos2/msg.imp
135
136LIBRARIES += libos2_lazy
137libos2_lazy_TEMPLATE = libos2lazy
138libos2_lazy_SOURCES = \
139 $(filter-out %-data.imp,$(wildcard $(PATH_LIBC_SRC)/libos2/*.imp))
140
141
142# generate rules
143include $(PATH_KBUILD)/subfooter.kmk
144
Note: See TracBrowser for help on using the repository browser.