Improve the process for GNU tools
[minix3.git] / external / bsd / kyua-cli / lib / utils / Makefile
blob90e5be47480d8ad54116576397e4430367ee4b82
1 # $NetBSD: Makefile,v 1.1 2013/02/23 14:16:50 jmmv Exp $
3 .include <bsd.init.mk>
5 .PATH: ${SRCDIR}/utils
7 LIB= utils
9 WARNS?= 2
11 SRCS= datetime.cpp \
12 env.cpp \
13 memory.cpp \
14 passwd.cpp \
15 sanity.cpp \
16 stream.cpp \
17 units.cpp
19 .if defined(__MINIX)
20 COPTS.memory.cpp+= -Wno-unused-function
21 .endif # defined(__MINIX)
23 SRCS+= cmdline/base_command.cpp \
24 cmdline/exceptions.cpp \
25 cmdline/globals.cpp \
26 cmdline/options.cpp \
27 cmdline/parser.cpp \
28 cmdline/ui.cpp \
29 cmdline/ui_mock.cpp
31 SRCS+= config/exceptions.cpp \
32 config/keys.cpp \
33 config/lua_module.cpp \
34 config/nodes.cpp \
35 config/parser.cpp \
36 config/tree.cpp
38 SRCS+= format/exceptions.cpp \
39 format/formatter.cpp
41 SRCS+= fs/auto_cleaners.cpp \
42 fs/exceptions.cpp \
43 fs/lua_module.cpp \
44 fs/operations.cpp \
45 fs/path.cpp
47 SRCS+= logging/operations.cpp
49 SRCS+= process/child.cpp \
50 process/exceptions.cpp \
51 process/fdstream.cpp \
52 process/status.cpp \
53 process/system.cpp \
54 process/systembuf.cpp
56 SRCS+= signals/exceptions.cpp \
57 signals/interrupts.cpp \
58 signals/misc.cpp \
59 signals/programmer.cpp
61 SRCS+= sqlite/c_gate.cpp \
62 sqlite/database.cpp \
63 sqlite/exceptions.cpp \
64 sqlite/statement.cpp \
65 sqlite/transaction.cpp
67 SRCS+= text/exceptions.cpp \
68 text/operations.cpp \
69 text/table.cpp \
70 text/templates.cpp
72 # The subdirectories into which we recurse only exist to create the necessary
73 # obj directories for the above SRCS declarations to work. We need to be able
74 # to create object files of the form <subdirectory>/<file>.o, and therefore
75 # the subdirectory must exist upfront.
77 # Note that there are source files of the same name in various subdirectories,
78 # so we just cannot use .PATH to look for files in all of them at once.
80 # TODO: Would be nice if bsd.obj.mk (or whichever other module) did the right
81 # thing here and just created these obj directories for us. Or, alternatively,
82 # we could have every subdirectory Makefile create a temporary .a and we could
83 # pull all the .a files together from here into libutil.a.
84 SUBDIR= cmdline config format fs logging process signals sqlite text
85 .for dir in ${SUBDIR}
86 clean-${dir} cleandir-${dir} includes-${dir}: .PHONY
87 @true
88 .endfor
90 .include <bsd.subdir.mk>
91 .include <bsd.lib.mk>