Changeset 3532 for trunk/tools/common


Ignore:
Timestamp:
May 13, 2000, 5:40:34 PM (25 years ago)
Author:
bird
Message:

Updated makefiles to be more comform with the new makefile style.

Location:
trunk/tools/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/common/makefile

    r2714 r3532  
    1 # $Id: makefile,v 1.3 2000-02-09 23:50:51 bird Exp $
     1# $Id: makefile,v 1.4 2000-05-13 15:40:34 bird Exp $
    22
    33#
     
    3636
    3737
    38 dep:
    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 
    4338commonicc.lib: dummy
    4439    -@echo $@
     
    5348    @$(MAKE_CMD) OMF=1 -f makefile.gcc
    5449
     50
    5551#a simple hack to make nmake process the target.
    5652dummy:
     
    6460
    6561
     62dep:
     63    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
     64        *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h *.c *.cpp -objo *.c *.cpp -objgobj *.c *.cpp
    6665
  • trunk/tools/common/makefile.gcc

    r2714 r3532  
    1 # $Id: makefile.gcc,v 1.3 2000-02-09 23:50:51 bird Exp $
     1# $Id: makefile.gcc,v 1.4 2000-05-13 15:40:34 bird Exp $
    22
    33#
     
    88#
    99
    10 # common include directory
     10#
     11# Directories and common tools.
     12#
     13PDWIN32_TOOLS   = ..\bin
    1114PDWIN32_INCLUDE = ..\..\include
     15!include $(PDWIN32_INCLUDE)\pdwin32.tools
    1216
    13 !ifndef RM
    14 RM = rm -f
    15 !endif
     17# Definitions for pdwin32.post
     18LOCALCLEAN  = 1
     19CLEANEXTRAS = commongcc.*
     20
     21
     22#
     23# If OMF flag isn't set, set it to default value.
     24#
    1625!ifndef OMF
    1726OMF=0
    1827!endif
     28
    1929
    2030#
     
    2434CXX = gcc
    2535LD  = gcc
     36!ifdef DEBUG
     37OBJDIR  = .\bin\debug
     38!else
     39OBJDIR  = .\bin\release
     40!endif
     41
    2642
    2743!if $(OMF) == 0
     44# aout version
    2845O        = o
    2946LIB      = a
     
    3249
    3350!else
    34 
     51# OMF version
    3552O        = gobj
    3653LIB      = lib
    3754AR       = emxomfar
    3855CFZOMF   = -Zomf
     56
    3957!endif
     58
    4059
    4160CDEFINES  = -D__WIN32OS2__ -D__WINE__
    4261CINCLUDES = -I$(PDWIN32_INCLUDE)\Win -I$(PDWIN32_INCLUDE)
     62CPLUS_INCLUDE_PATH= $(CPLUS_INCLUDE_PATH);$(INCLUDE)
    4363
    44 #Note: Add -fhandle-exceptions if old gcc version (< 2.8.x?).
     64# Note: Add -fhandle-exceptions if old gcc version (< 2.8.x?).
    4565!ifndef DEBUG
    4666CFLAGS    = $(CFZOMF) -Wall -Zmap -Zmt -mprobe -Wall -s -O
     
    5272
    5373#
    54 # interference rules
     74# Interference rules
    5575#
    56 .c.$(O):
     76.c{$(OBJDIR)}.$(O):
    5777    $(CC) -c $(CFLAGS) $(CDEFINES) $(CINCLUDES) $< -o $@
    5878
    59 .cpp.$(O):
     79.cpp{$(OBJDIR)}.$(O):
    6080    $(CXX) -c $(CXXFLAGS) $(CDEFINES) $(CINCLUDES) $< -o $@
    6181
    6282
    63 
    64 all: commongcc.$(LIB)
     83#
     84# Object files.
     85#
     86OBJS = \
     87$(OBJDIR)\kFilePe.$(O) \
     88$(OBJDIR)\kFileDef.$(O) \
     89$(OBJDIR)\kFileLx.$(O) \
     90$(OBJDIR)\kFileFormatBase.$(O)
    6591
    6692
    67 commongcc.$(LIB): kFilePE.$(O) kFileDef.$(O)
    68    $(RM) $@
    69    $(AR) cr $@ kFilePE.$(O) kFileDef.$(O)
     93#
     94# All rule.
     95#
     96all:    $(OBJDIR) \
     97        commongcc.$(LIB)
    7098
    7199
    72 dep:
    73     @nmake /nologo -f makefile NODEP=1 dep
     100$(OBJDIR)\commongcc.$(LIB): $(OBJS)
     101   $(RM) $@
     102   $(AR) cr $@ $(OBJS)
    74103
    75 !ifndef NODEP
    76 !include .depend
    77 !endif
     104commongcc.$(LIB): $(OBJDIR)\commongcc.$(LIB)
     105   $(CP) $** $@
    78106
    79107
    80 clean:
    81    @$(RM) *.$(O) commongcc.$(LIB)
     108#
     109# dependent rule. forward to main makefile.
     110#
     111dep:
     112    @$(MAKE) /nologo -f makefile NODEP=1 dep
    82113
     114
     115# Includes the common rules.
     116!include $(PDWIN32_INCLUDE)/pdwin32.post
     117
  • trunk/tools/common/makefile.icc

    r3246 r3532  
    1 # $Id: makefile.icc,v 1.6 2000-03-27 10:18:42 bird Exp $
     1# $Id: makefile.icc,v 1.7 2000-05-13 15:40:34 bird Exp $
    22
    33#
     
    99
    1010
     11#
     12# Include common definitions
     13#
     14PDWIN32_TOOLS   = ..\bin
     15PDWIN32_INCLUDE = ..\..\include
     16!include $(PDWIN32_INCLUDE)\pdwin32.mk
    1117
    12 # include common definitions
    13 PDWIN32_INCLUDE = ..\..\include
    14 !include ..\..\include\pdwin32.mk
     18# Definitions for pdwin32.post
     19LOCALCLEAN  = 1
     20CLEANEXTRAS = commonicc.lib
    1521
    16 # Addjust common definitions
    17 AR       = ilib /nofree /quiet /nobackup
     22#
     23# Addjust common definitions...
     24#
    1825CFLAGS   = $(CFLAGS)   -Ge+ -Tx+ -Tm+ -I$(PDWIN32_INCLUDE)      -Wall+ppt-ppc-inl-cnv-gnr-vft-
    1926CXXFLAGS = $(CXXFLAGS) -Ge+ -Gx- -Tx+ -Tm+ -I$(PDWIN32_INCLUDE) -Wall+ppt-ppc-inl-cnv-gnr-vft-
    2027
    2128
    22 all: commonicc.lib
     29#
     30# Object files.
     31# Important! No space after the filenames! The space will be converted
     32#     to a '+' operator on the ILIB command line. NMAKE adds a space
     33#     for each new line. This space is converted to a '+' which
     34#     prefixes each filenames.
     35#
     36OBJS =\
     37$(OBJDIR)\kFilePe.obj\
     38$(OBJDIR)\kFileDef.obj\
     39$(OBJDIR)\kFileLx.obj\
     40$(OBJDIR)\kFileFormatBase.obj
    2341
    2442
    25 commonicc.lib: kFilePe.obj kFileDef.obj kFileLx.obj kFileFormatBase.obj
    26     -$(RM) $@
    27     $(AR) $@ -+kFilePe.obj -+kFileDef.obj -+kFileLx.obj -+kFileFormatBase.obj, NUL;
     43#
     44# All rule.
     45#
     46all:    $(OBJDIR) \
     47        commonicc.lib
    2848
    2949
     50commonicc.lib: $(OBJDIR)\commonicc.lib
     51    $(CP) $@ $**
     52
     53$(OBJDIR)\commonicc.lib: $(OBJS)
     54    $(RM) $@
     55    $(ILIB) $@ $(OBJS: = +), NUL;
     56
     57#
     58# dependent rule. forward to main makefile.
     59#
    3060dep:
    31     @nmake /nologo -f makefile NODEP=1 dep
    32 
    33 !ifndef NODEP
    34 !include .depend
    35 !endif
     61    @$(MAKE) /nologo -f makefile NODEP=1 dep
    3662
    3763
    38 clean:
    39    @$(RM) *.obj commonicc.lib cset*.pch
     64# Includes the common rules.
     65!include $(PDWIN32_INCLUDE)/pdwin32.post
    4066
    41 
    42 
    43 
Note: See TracChangeset for help on using the changeset viewer.