source: trunk/tools/common/makefile@ 5280

Last change on this file since 5280 was 5053, checked in by bird, 25 years ago

Corrected kFileLX and kFilePE constructors.
Made kDump.exe work again.
Added import module dump to kFilePE.

File size: 1.8 KB
Line 
1# $Id: makefile,v 1.12 2001-02-02 08:45:42 bird Exp $
2
3#
4# Odin32 API
5#
6# Tools common parts
7#
8# Usage: nmake ( all | clean | dep |..)
9#
10# all: Build the entire src.
11# clean: Back to a "virgin" state.
12# dep: Creates the .depend file.
13# needed: Builds the tools used during compilation of the src tree.
14# common.lib or libs: Make common.lib.
15# kDef2Wat.exe: kDef2Wat.exe
16# kDump.exe: kDump.exe
17#
18#
19
20
21#
22# Compiler, tools, and interference rules.
23#
24!include ../../makefile.inc
25
26
27#
28# All rule.
29#
30all: $(OBJDIR)\common.lib \
31!ifdef GCC
32 $(OBJDIR)\common.a \
33!endif
34 $(ODIN32_TOOLS)\kDef2Wat.exe \
35 $(ODIN32_TOOLS)\kDump.exe
36
37
38#
39# The neede tools
40#
41needed: $(OBJDIR)\common.lib \
42 $(ODIN32_TOOLS)\kDef2Wat.exe \
43 $(SYMBOLIC)
44
45#
46# The library.
47#
48libs $(OBJDIR)\common.lib: force
49 -@echo $@
50 @$(MAKE_CMD) -f common.mak all
51
52#
53# The Aout library.
54#
55$(OBJDIR)\common.a: force
56 -@echo $@
57 @$(MAKE_CMD) OMF=1 -f common.mak all
58
59
60#
61# Tools.
62#
63$(ODIN32_TOOLS)\kDump.exe $(OBJDIR)\kDump.exe kDump.exe \
64$(ODIN32_TOOLS)\kDef2Wat.exe $(OBJDIR)\kDef2Wat.exe kDef2Wat.exe : force
65 -@echo $@
66 @$(MAKE_CMD) -f $(@B).mak all
67
68
69#
70# Clean rule.
71#
72clean: $(SYMBOLIC)
73 $(MAKE_CMD) -f common.mak clean
74 $(MAKE_CMD) -f kDef2Wat.mak clean
75 $(MAKE_CMD) -f kDump.mak clean
76
77
78#
79# Dep rule - makes depenencies for C, C++ and Asm files.
80#
81dep: $(SYMBOLIC)
82 $(DEPEND) $(CINCLUDES) *.c *.cpp *.h *.asm *.inc \
83 *.rc *.dlg $(ODIN32_INCLUDE)\*.h -robj *.orc \
84 -objo *.c *.cpp \
85 -objgobj *.c *.cpp
86
87
88#
89# A simple hack to make nmake process the target.
90#
91force: $(SYMBOLIC)
92 -@echo ...
93
94
95#
96# Lib rule - dummy rule
97#
98lib: $(SYMBOLIC)
99
Note: See TracBrowser for help on using the repository browser.