source: trunk/tools/common/makefile@ 6871

Last change on this file since 6871 was 6865, checked in by bird, 24 years ago

Traverse silently thru makefiles.
Corrected dependecy bug which caused relinking all the time.

File size: 1.9 KB
Line 
1# $Id: makefile,v 1.14 2001-09-30 00:18:11 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 @$(DOMAKES) "common.mak" $(MAKE_CMD) all
50
51#
52# The Aout library.
53#
54$(OBJDIR)\common.a: force
55 @$(DOMAKES) "common.mak" $(MAKE_CMD) OMF=1 all
56
57
58#
59# Tools.
60#
61$(ODIN32_TOOLS)\kDump.exe $(OBJDIR)\kDump.exe kDump.exe \
62$(ODIN32_TOOLS)\kDef2Wat.exe $(OBJDIR)\kDef2Wat.exe kDef2Wat.exe : force
63 @$(DOMAKES) "$(@B).mak" $(MAKE_CMD) all
64
65
66#
67# Clean rule.
68#
69clean: $(SYMBOLIC)
70 @$(DOMAKES) "common.mak kDef2Wat.mak kDump.mak" $(MAKE_CMD) all
71
72
73#
74# Dep rule - makes depenencies for C, C++ and Asm files.
75#
76dep: $(SYMBOLIC)
77 $(DEPEND) $(CINCLUDES) *.c *.cpp *.h *.asm *.inc \
78 *.rc *.dlg $(ODIN32_INCLUDE)\*.h -robj *.orc \
79 -objo *.c *.cpp \
80 -objgobj *.c *.cpp
81
82
83#
84# A simple hack to make nmake process the target.
85#
86force: $(SYMBOLIC)
87#!ifdef MAKEVER
88 -@echo ...
89#!endif
90
91
92#
93# Lib rule - dummy rule
94#
95lib: $(SYMBOLIC)
96
97
98#
99# Nothing rule used for makefile debugging.
100#
101nothing:
102 @echo Did nothing with makefile $(MAKEDIR)\$(MAKEFILE)
103
104
Note: See TracBrowser for help on using the repository browser.