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 |
|
---|
20 | PDWIN32_INCLUDE = ..\..\include
|
---|
21 | PDWIN32_TOOLS = ..\bin
|
---|
22 | !include $(PDWIN32_INCLUDE)\pdwin32.mk
|
---|
23 |
|
---|
24 |
|
---|
25 | !ifdef DEBUG
|
---|
26 | MAKE_CMD = $(MAKE) -nologo DEBUG=1
|
---|
27 | !else
|
---|
28 | MAKE_CMD = $(MAKE) -nologo
|
---|
29 | !endif
|
---|
30 |
|
---|
31 |
|
---|
32 | all: commonicc.lib commongcc.a commongcc.lib
|
---|
33 |
|
---|
34 |
|
---|
35 | needed: commonicc.lib
|
---|
36 |
|
---|
37 |
|
---|
38 | commonicc.lib: dummy
|
---|
39 | -@echo $@
|
---|
40 | @$(MAKE_CMD) -f makefile.icc
|
---|
41 |
|
---|
42 | commongcc.a: dummy
|
---|
43 | -@echo $@
|
---|
44 | @$(MAKE_CMD) OMF=0 -f makefile.gcc
|
---|
45 |
|
---|
46 | commongcc.lib: dummy
|
---|
47 | -@echo $@
|
---|
48 | @$(MAKE_CMD) OMF=1 -f makefile.gcc
|
---|
49 |
|
---|
50 |
|
---|
51 | #a simple hack to make nmake process the target.
|
---|
52 | dummy:
|
---|
53 | -@echo ...
|
---|
54 |
|
---|
55 |
|
---|
56 | clean:
|
---|
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 |
|
---|
62 | dep:
|
---|
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.