summaryrefslogtreecommitdiffstats
path: root/src/lib/Makefile.kmk
blob: a281d280e387fed8d7ae824e72a81951a3a6ddbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# $Id: Makefile.kmk 3551 2022-01-29 02:57:33Z bird $
## @file
# Sub-makefile for various libraries and stuff.
#

#
# Copyright (c) 2006-2016 knut st. osmundsen <bird-kBuild-spamx@anduin.net>
#
# This file is part of kBuild.
#
# kBuild is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# kBuild is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with kBuild.  If not, see <http://www.gnu.org/licenses/>
#
#

SUB_DEPTH = ../..
include $(KBUILD_PATH)/subheader.kmk

LIBRARIES += kDep
kDep_TEMPLATE = LIB
kDep_DEFS.win += NEED_ISBLANK=1 __WIN32__=1
kDep_SOURCES = kDep.c
kDep_NOINST = 1

LIBRARIES += kUtil
kUtil_TEMPLATE = LIB
kUtil_DEFS.win = __WIN__
kUtil_SOURCES = \
	crc32.c \
	md5.c \
	maybe_con_write.c \
	maybe_con_fwrite.c \
	is_console.c \
       dos2unix.c \
	kbuild_version.c \
	version_compare.c
kUtil_SOURCES.win = \
	get_codepage.c \
	msc_buffered_printf.c \
	win_get_processor_group_active_mask.c \
	nt_fullpath.c \
	nt_fullpath_cached.c \
	quote_argv.c \
	quoted_spawn.c \
       nt/nthlpcore.c \
       nt/nthlpfs.c \
       nt/ntdir.c \
       nt/ntstat.c \
       nt/ntunlink.c \
       nt/ntutimes.c \
       nt/nt_child_inject_standard_handles.c \
       nt/fts-nt.c \
       nt/kFsCache.c \
       kStuff/kHlp/CRT/kHlpCRTString.cpp \
       kStuff/kHlp/CRT/kHlpCRTAlloc.cpp
kUtil_SOURCES.solaris = \
	restartable-syscall-wrappers.c
#kUtil_SOURCES.linux = \
#	restartable-syscall-wrappers.c
kUtil_NOINST = 1

kbuild_version.c_DEFS = KBUILD_SVN_REV=$(KBUILD_SVN_REV)

LIBRARIES.win += kWinStartup
kWinStartup_TEMPLATE = LIB
kWinStartup_SOURCES = startuphacks-win.c
kWinStartup_NOINST = 1

PROGRAMS += wrapper
wrapper_TEMPLATE = BIN
wrapper_SOURCES = wrapper.c
wrapper_NOINST = 1

PROGRAMS.win += tstNtStat
tstNtStat_TEMPLATE = BIN
tstNtStat_SOURCES = nt/tstNtStat.c
tstNtStat_LIBS = $(LIB_KUTIL)
tstNtStat_NOINST = 1

PROGRAMS.win += tstNtFts
tstNtFts_TEMPLATE = BIN
tstNtFts_SOURCES = nt/tstNtFts.c nt/fts-nt.c
tstNtFts_LIBS = $(LIB_KUTIL)
tstNtFts_NOINST = 1

PROGRAMS.win += tstkFsCache
tstkFsCache_TEMPLATE = BIN
tstkFsCache_SOURCES = nt/tstkFsCache.c
tstkFsCache_LIBS = $(LIB_KUTIL)
tstkFsCache_NOINST = 1

PROGRAMS += tstVersionCompare
tstVersionCompare_TEMPLATE = BIN
tstVersionCompare_SOURCES = version_compare.c
tstVersionCompare_DEFS = TEST
tstVersionCompare_NOINST = 1

include $(FILE_KBUILD_SUB_FOOTER)