Changeset 2714 for trunk/tools/common


Ignore:
Timestamp:
Feb 10, 2000, 12:52:04 AM (26 years ago)
Author:
bird
Message:

Dependencies.

Location:
trunk/tools/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/common/makefile

    r826 r2714  
    1 # $Id: makefile,v 1.2 1999-09-05 02:30:45 bird Exp $
     1# $Id: makefile,v 1.3 2000-02-09 23:50:51 bird Exp $
    22
    33#
     
    66#       Tools common parts
    77#
    8 #       Usage: nmake ( all | clean )
     8#       Usage: nmake ( all | clean | dep |..)
    99#
    1010#            all: Build the entire src.
    1111#            clean: Back to a "virgin" state.
     12#            dep: Creates the .depend file.
    1213#            needed: Builds the tools used during compilation of the src tree.
    1314#            commonicc.lib: Build the IBM VA for C++ version of the library.
     
    1617#
    1718#
     19
     20PDWIN32_INCLUDE = ..\..\include
     21PDWIN32_TOOLS = ..\bin
     22!include $(PDWIN32_INCLUDE)\pdwin32.mk
     23
     24
    1825!ifdef DEBUG
    1926MAKE_CMD = nmake -nologo DEBUG=1
     
    2128MAKE_CMD = nmake -nologo
    2229!endif
     30
    2331
    2432all:    commonicc.lib commongcc.a commongcc.lib
     
    2836
    2937
     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
    3043commonicc.lib: dummy
    31         -@echo $@
    32         @$(MAKE_CMD) -f makefile.icc
     44    -@echo $@
     45    @$(MAKE_CMD) -f makefile.icc
    3346
    3447commongcc.a: dummy
    35         -@echo $@
    36         @$(MAKE_CMD) OMF=0 -f makefile.gcc
     48    -@echo $@
     49    @$(MAKE_CMD) OMF=0 -f makefile.gcc
    3750
    3851commongcc.lib: dummy
    39         -@echo $@
    40         @$(MAKE_CMD) OMF=1 -f makefile.gcc
     52    -@echo $@
     53    @$(MAKE_CMD) OMF=1 -f makefile.gcc
    4154
    4255#a simple hack to make nmake process the target.
     
    4457     -@echo ...
    4558
     59
    4660clean:
    47         @$(MAKE_CMD) -f makefile.icc clean
    48         @$(MAKE_CMD) OMF=0 -f makefile.gcc clean
    49         @$(MAKE_CMD) OMF=1 -f makefile.gcc clean
     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
    5064
    5165
  • trunk/tools/common/makefile.gcc

    r826 r2714  
    1 # $Id: makefile.gcc,v 1.2 1999-09-05 02:30:46 bird Exp $
     1# $Id: makefile.gcc,v 1.3 2000-02-09 23:50:51 bird Exp $
    22
    33#
     
    4444#Note: Add -fhandle-exceptions if old gcc version (< 2.8.x?).
    4545!ifndef DEBUG
    46 CFLAGS        = $(CFZOMF) -Wall -Zmap -Zmt -mprobe -Wall -s -O
     46CFLAGS    = $(CFZOMF) -Wall -Zmap -Zmt -mprobe -Wall -s -O
    4747!else
    48 CFLAGS        = $(CFZOMF) -Wall -Zmap -Zmt -mprobe -Wall -g
     48CFLAGS    = $(CFZOMF) -Wall -Zmap -Zmt -mprobe -Wall -g
    4949!endif
    5050CXXFLAGS  = $(CFLAGS)
     
    6666
    6767commongcc.$(LIB): kFilePE.$(O) kFileDef.$(O)
    68    -$(RM) $@
     68   $(RM) $@
    6969   $(AR) cr $@ kFilePE.$(O) kFileDef.$(O)
    7070
    7171
    72 clean:
    73    -@$(RM) *.$(O)
    74    -@$(RM) commongcc.$(LIB)
     72dep:
     73    @nmake /nologo -f makefile NODEP=1 dep
     74
     75!ifndef NODEP
     76!include .depend
     77!endif
    7578
    7679
    77 # dependencies
    78 kFilePE.$(O):   kFilePE.cpp   \
    79                 kFilePE.h     \
    80                 kFileFormatBase.h
     80clean:
     81   @$(RM) *.$(O) commongcc.$(LIB)
    8182
    82 kFileDef.$(O):  kFileDef.cpp  \
    83                 kFileDef.h    \
    84                 kFileFormatBase.h
    85 
  • trunk/tools/common/makefile.icc

    r1007 r2714  
    1 # $Id: makefile.icc,v 1.3 1999-09-22 09:46:52 sandervl Exp $
     1# $Id: makefile.icc,v 1.4 2000-02-09 23:50:51 bird Exp $
    22
    33#
     
    2828
    2929
    30 clean:
    31    -@$(RM) *.obj
    32    -@$(RM) commonicc.lib
    33    -@$(RM) cset*.pch
     30dep:
     31    @nmake /nologo -f makefile NODEP=1 dep
     32
     33!ifndef NODEP
     34!include .depend
     35!endif
    3436
    3537
    36 # dependencies
    37 kFilePE.obj:    kFilePE.cpp   \
    38                 kFilePE.h     \
    39                 kFileFormatBase.h
    40 
    41 kFileDef.obj:   kFileDef.cpp  \
    42                 kFileDef.h    \
    43                 kFileFormatBase.h
     38clean:
     39   @$(RM) *.obj commonicc.lib cset*.pch
    4440
    4541
     42
     43
Note: See TracChangeset for help on using the changeset viewer.