1 | # $Id: Makefile.kmk 2 2007-11-16 16:07:14Z bird $
|
---|
2 | ## @file
|
---|
3 | # kDbg - The Debug Info Reader, sub-makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (c) 2007 knut st. osmundsen <[email protected]>
|
---|
8 | #
|
---|
9 | # This file is part of kStuff.
|
---|
10 | #
|
---|
11 | # kStuff is free software; you can redistribute it and/or
|
---|
12 | # modify it under the terms of the GNU Lesser General Public
|
---|
13 | # License as published by the Free Software Foundation; either
|
---|
14 | # version 2.1 of the License, or (at your option) any later version.
|
---|
15 | #
|
---|
16 | # kStuff 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 GNU
|
---|
19 | # Lesser General Public License for more details.
|
---|
20 | #
|
---|
21 | # You should have received a copy of the GNU Lesser General Public
|
---|
22 | # License along with kStuff; if not, write to the Free Software
|
---|
23 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
---|
24 | #
|
---|
25 |
|
---|
26 | DEPTH ?= ../..
|
---|
27 | SUB_DEPTH = ..
|
---|
28 | include $(PATH_KBUILD)/subheader.kmk
|
---|
29 |
|
---|
30 | #
|
---|
31 | # kDbg - The profiler module.
|
---|
32 | #
|
---|
33 | #DLLS += kDbg - disabled for now.
|
---|
34 | kDbg_TEMPLATE = kStuffDLL
|
---|
35 | kDbg_DEFS = KDBG_BUILDING KDBG_RESIDES_IN_DLL
|
---|
36 | kDbg_SOURCES := \
|
---|
37 | kDbgModule.cpp \
|
---|
38 | kDbgLine.cpp \
|
---|
39 | kDbgSymbol.cpp
|
---|
40 |
|
---|
41 | kDbg_SOURCES.win += \
|
---|
42 | kDbgModWinDbgHelp.cpp
|
---|
43 |
|
---|
44 | #
|
---|
45 | # kDbgStatic - The profiler module.
|
---|
46 | #
|
---|
47 | LIBRARIES += kDbgStatic
|
---|
48 | kDbgStatic_TEMPLATE = kStuffLIB
|
---|
49 | kDbgStatic_DEFS = KDBG_BUILDING
|
---|
50 | kDbgStatic_SOURCES = $(kDbg_SOURCES)
|
---|
51 |
|
---|
52 | #
|
---|
53 | # kDbgDump - Test program which dumps whatever is thrown at it.
|
---|
54 | #
|
---|
55 | PROGRAMS += kDbgDump
|
---|
56 | kDbgDump_TEMPLATE = kStuffEXE
|
---|
57 | kDbgDump_SOURCES = kDbgDump.cpp
|
---|
58 | kDbgDump_LIBS = \
|
---|
59 | $(TARGET_kDbgStatic) \
|
---|
60 | $(subst kDbg,kLdr,$(TARGET_kDbgStatic)) \
|
---|
61 | $(subst kDbg,kRdr,$(TARGET_kDbgStatic)) \
|
---|
62 | $(subst kDbg,kHlpCRT,$(TARGET_kDbgStatic))
|
---|
63 |
|
---|
64 | # Generate the rules
|
---|
65 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
66 |
|
---|