| 1 | # $Id: Makefile.kmk 6 2008-02-03 23:37:34Z bird $
|
|---|
| 2 | ## @file
|
|---|
| 3 | # kDbg - The Debug Info Reader, sub-makefile.
|
|---|
| 4 | #
|
|---|
| 5 |
|
|---|
| 6 | #
|
|---|
| 7 | # Copyright (c) 2007 knut st. osmundsen <bird-kStuff-spam@anduin.net>
|
|---|
| 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 | kDbgModLdr.cpp \
|
|---|
| 39 | kDbgLine.cpp \
|
|---|
| 40 | kDbgSymbol.cpp
|
|---|
| 41 |
|
|---|
| 42 | kDbg_SOURCES.win += \
|
|---|
| 43 | kDbgModWinDbgHelp.cpp
|
|---|
| 44 |
|
|---|
| 45 | #
|
|---|
| 46 | # kDbgStatic - The profiler module.
|
|---|
| 47 | #
|
|---|
| 48 | LIBRARIES += kDbgStatic
|
|---|
| 49 | kDbgStatic_TEMPLATE = kStuffLIB
|
|---|
| 50 | kDbgStatic_DEFS = KDBG_BUILDING
|
|---|
| 51 | kDbgStatic_SOURCES = $(kDbg_SOURCES)
|
|---|
| 52 | kDbgStatic_SOURCES.win = $(kDbg_SOURCES.win)
|
|---|
| 53 |
|
|---|
| 54 | #
|
|---|
| 55 | # kDbgDump - Test program which dumps whatever is thrown at it.
|
|---|
| 56 | #
|
|---|
| 57 | PROGRAMS += kDbgDump
|
|---|
| 58 | kDbgDump_TEMPLATE = kStuffEXE
|
|---|
| 59 | kDbgDump_SOURCES = kDbgDump.cpp
|
|---|
| 60 | kDbgDump_LIBS = \
|
|---|
| 61 | $(TARGET_kDbgStatic) \
|
|---|
| 62 | $(subst kDbg,kLdr,$(TARGET_kDbgStatic)) \
|
|---|
| 63 | $(subst kDbg,kRdr,$(TARGET_kDbgStatic)) \
|
|---|
| 64 | $(subst kDbg,kHlpCRT,$(TARGET_kDbgStatic))
|
|---|
| 65 |
|
|---|
| 66 | # Generate the rules
|
|---|
| 67 | include $(PATH_KBUILD)/subfooter.kmk
|
|---|
| 68 |
|
|---|