source: trunk/tools/common/makefile@ 4503

Last change on this file since 4503 was 4402, checked in by bird, 25 years ago

Implemented .Def to WLINK directives/options converter.

File size: 1.5 KB
Line 
1# $Id: makefile,v 1.7 2000-10-03 05:42:39 bird Exp $
2
3#
4# PD-Win32 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# commonicc.lib: Build the IBM VA for C++ version of the library.
15# commongcc.a: Build the gcc version of the library - aout
16# commongcc.lib: Build the gcc version of the library - OMF.
17#
18#
19
20!include ..\..\include\pdwin32.mk
21
22
23all: commonicc.lib commongcc.a commongcc.lib
24
25
26needed: commonicc.lib $(PDWIN32_TOOLS)\kDef2Wat.exe
27
28
29commonicc.lib: dummy
30 -@echo $@
31 @$(MAKE_CMD) -f makefile.icc
32
33commongcc.a: dummy
34 -@echo $@
35 @$(MAKE_CMD) OMF=0 -f makefile.gcc
36
37commongcc.lib: dummy
38 -@echo $@
39 @$(MAKE_CMD) OMF=1 -f makefile.gcc
40
41
42$(PDWIN32_TOOLS)\kDump.exe $(OBJDIR)\kDump.exe kDump.exe: dummy
43 -@echo $@
44 @$(MAKE_CMD) -f makefile.icc $@
45
46
47$(PDWIN32_TOOLS)\kDef2Wat.exe $(OBJDIR)\kDef2Wat.exe kDef2Wat.exe: dummy
48 -@echo $@
49 @$(MAKE_CMD) -f makefile.icc $@
50
51
52#a simple hack to make nmake process the target.
53dummy:
54 -@echo ...
55
56
57clean:
58 @$(MAKE_CMD) -f makefile.icc clean
59 @$(MAKE_CMD) OMF=0 -f makefile.gcc clean
60 @$(MAKE_CMD) OMF=1 -f makefile.gcc clean
61
62
63dep:
64 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
65 *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h *.c *.cpp -objo *.c *.cpp -objgobj *.c *.cpp
66
Note: See TracBrowser for help on using the repository browser.