Changeset 4620 for trunk/tools/SDF


Ignore:
Timestamp:
Nov 19, 2000, 9:35:50 AM (25 years ago)
Author:
bird
Message:

New makefile style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/SDF/makefile

    r4332 r4620  
    1 # $Id: makefile,v 1.2 2000-09-28 03:06:27 bird Exp $
     1# $Id: makefile,v 1.3 2000-11-19 08:25:50 bird Exp $
    22
    33#
     
    99
    1010
    11 # include common definitions
     11#
     12# Directory macros.
     13#
    1214PDWIN32_INCLUDE = ..\..\include
     15PDWIN32_LIB     = ..\..\lib
     16PDWIN32_BIN     = ..\bin
    1317PDWIN32_TOOLS   = ..\bin
     18PDWIN32_TCOMMON = ..\common
     19
     20
     21#
     22# Tell buildenvironment that we're makeing an .exe.
     23# Tell buildenvironment that we should not copy this into /bin.
     24#
     25EXETARGET = 1
     26NO_MAIN_BIN_COPY = 1
     27
     28
     29#
     30# Compiler, tools, and interference rules.
     31#
    1432!include $(PDWIN32_INCLUDE)\pdwin32.mk
     33!include $(PDWIN32_TCOMMON)\common.mk
    1534
    16 # Addjust common definitions
    17 CINCLUDES= -I$(PDWIN32_INCLUDE) -I$(PDWIN32_INCLUDE)\win -I..\common
    18 !ifdef DEBUG
    19 CFLAGS   = $(CFLAGS)   -Ge+ -Tx+ $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-
    20 CXXFLAGS = $(CXXFLAGS) -Ge+ -Gx- -Tx+ $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-
    21 LDFLAGS  = $(LDFLAGS)  -Ge+ -Fe$@ /B"/MAP:full"
    22 !else
    23 CFLAGS   = $(CFLAGS)   -Ge+ -Tx+ $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-
    24 CXXFLAGS = $(CXXFLAGS) -Ge+ -Gx- -Tx+ $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-
    25 LDFLAGS  = $(LDFLAGS)  -Ge+ -Fe$@ /B"/MAP:full"
     35
     36#
     37# Flag overrides.
     38#
     39!if "$(VAC3)" == "1" || "$(VAC36)" == "1"
     40CFLAGS      = $(CFLAGS)        -Wall+ppt-ppc-inl-cnv-gnr-vft-
     41CXXFLAGS    = $(CXXFLAGS) -Gx- -Wall+ppt-ppc-inl-cnv-gnr-vft-
    2642!endif
    2743
    2844
    29 
    30 all: sdf.exe ..\bin\sdf.exe
    31 
    32 
    33 sdf.exe: sdf.obj ..\common\commonicc.lib
    34    $(LD) $(LDFLAGS) $** $(RTLLIB) os2386.lib
    35 
    36 ..\bin\sdf.exe: sdf.exe
    37    $(CP) $** $@
    38 
    39 dep:
    40     $(DEPEND) $(CINCLUDES) -I *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    41         *.c *.cpp
    42 
    43 clean:
    44     @$(RM) *.obj *.exe *.map *.pch *.log
     45#
     46# Object files. Prefix with OBJDIR and one space before the '\'.
     47#
     48OBJS= \
     49$(OBJDIR)\sdf.obj
    4550
    4651
    4752#
    48 # Include the .depend file.
    49 #   If the depend file don't exists we'll complain about it.
     53# Libraries. One space before the '\'.
    5054#
    51 !ifndef NODEP
    52 !   if [$(EXISTS) .depend] == 0
    53 !       include .depend
    54 !   else
    55 !       if [$(ECHO) .depend doesn't exist]
    56 !       endif
    57 !   endif
    58 !endif
     55LIBS = \
     56$(COMMONLIB) \
     57$(RTLLIB) \
     58os2386.lib
    5959
     60
     61#
     62# Target name - name of the exe without extention and path.
     63#
     64TARGET = sdf
     65
     66
     67#
     68# Includes the common rules.
     69#
     70!include $(PDWIN32_INCLUDE)\pdwin32.post
     71!include $(PDWIN32_TCOMMON)\common.mk.post
     72
Note: See TracChangeset for help on using the changeset viewer.