source: trunk/tools/common/makefile@ 3669

Last change on this file since 3669 was 3534, checked in by bird, 25 years ago

More corrections.

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