| 1 | # $Id: makefile,v 1.8 2000-11-19 08:29:54 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 |
|
|---|
| 23 | all: commonicc.lib commongcc.a commongcc.lib \
|
|---|
| 24 | $(PDWIN32_TOOLS)\kDef2Wat.exe
|
|---|
| 25 | # $(PDWIN32_TOOLS)\kDump.exe
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | needed: commonicc.lib $(PDWIN32_TOOLS)\kDef2Wat.exe
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | commonicc.lib: dummy
|
|---|
| 32 | -@echo $@
|
|---|
| 33 | @$(MAKE_CMD) -f makefile.icc
|
|---|
| 34 |
|
|---|
| 35 | commongcc.a: dummy
|
|---|
| 36 | -@echo $@
|
|---|
| 37 | @$(MAKE_CMD) OMF=0 -f makefile.gcc
|
|---|
| 38 |
|
|---|
| 39 | commongcc.lib: dummy
|
|---|
| 40 | -@echo $@
|
|---|
| 41 | @$(MAKE_CMD) OMF=1 -f makefile.gcc
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 | $(PDWIN32_TOOLS)\kDump.exe $(OBJDIR)\kDump.exe kDump.exe: dummy
|
|---|
| 45 | -@echo $@
|
|---|
| 46 | @$(MAKE_CMD) -f makefile.icc $@
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 | $(PDWIN32_TOOLS)\kDef2Wat.exe $(OBJDIR)\kDef2Wat.exe kDef2Wat.exe: dummy
|
|---|
| 50 | -@echo $@
|
|---|
| 51 | @$(MAKE_CMD) -f makefile.icc $@
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 | #a simple hack to make nmake process the target.
|
|---|
| 55 | dummy:
|
|---|
| 56 | -@echo ...
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 | clean:
|
|---|
| 60 | @$(MAKE_CMD) -f makefile.icc clean
|
|---|
| 61 | @$(MAKE_CMD) OMF=0 -f makefile.gcc clean
|
|---|
| 62 | @$(MAKE_CMD) OMF=1 -f makefile.gcc clean
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 | dep:
|
|---|
| 66 | $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
|
|---|
| 67 | *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h *.c *.cpp -objo *.c *.cpp -objgobj *.c *.cpp
|
|---|
| 68 |
|
|---|
| 69 | #
|
|---|
| 70 | # Do not includes the common rules.
|
|---|
| 71 | #
|
|---|
| 72 |
|
|---|