source: trunk/tools/common/makefile@ 2912

Last change on this file since 2912 was 2714, checked in by bird, 26 years ago

Dependencies.

File size: 1.4 KB
Line 
1# $Id: makefile,v 1.3 2000-02-09 23:50:51 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
20PDWIN32_INCLUDE = ..\..\include
21PDWIN32_TOOLS = ..\bin
22!include $(PDWIN32_INCLUDE)\pdwin32.mk
23
24
25!ifdef DEBUG
26MAKE_CMD = nmake -nologo DEBUG=1
27!else
28MAKE_CMD = nmake -nologo
29!endif
30
31
32all: commonicc.lib commongcc.a commongcc.lib
33
34
35needed: commonicc.lib
36
37
38dep:
39 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
40 *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h *.c *.cpp -objo *.c *.cpp -objgobj *.c *.cpp
41
42
43commonicc.lib: dummy
44 -@echo $@
45 @$(MAKE_CMD) -f makefile.icc
46
47commongcc.a: dummy
48 -@echo $@
49 @$(MAKE_CMD) OMF=0 -f makefile.gcc
50
51commongcc.lib: dummy
52 -@echo $@
53 @$(MAKE_CMD) OMF=1 -f makefile.gcc
54
55#a simple hack to make nmake process the target.
56dummy:
57 -@echo ...
58
59
60clean:
61 @$(MAKE_CMD) -f makefile.icc clean
62 @$(MAKE_CMD) OMF=0 -f makefile.gcc clean
63 @$(MAKE_CMD) OMF=1 -f makefile.gcc clean
64
65
66
Note: See TracBrowser for help on using the repository browser.