Changeset 5530 for trunk/tools/database


Ignore:
Timestamp:
Apr 17, 2001, 2:24:09 AM (24 years ago)
Author:
bird
Message:

Revamped makefiles to fit the new makefile style (finally).

Location:
trunk/tools/database
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database/Makefile

    r4804 r5530  
    1 # $Id: Makefile,v 1.16 2000-12-16 20:10:07 bird Exp $
     1# $Id: Makefile,v 1.17 2001-04-17 00:24:09 bird Exp $
    22
    33#
    4 # Common makefile for database utils. ICC edition
     4# Odin32 Api Database Utilities.
    55#
    6 
    7 # include common definitions
    8 ODIN32_TCOMMON = ..\common
    9 ODIN32_BIN     = $(ODIN32_TOOLS)
    10 !include ../../makefile.inc
    11 !include $(ODIN32_TCOMMON)/common.mk
    12 
    13 # Addjust common definitions
    14 CINCLUDES= -I$(ODIN32_INCLUDE) -I$(ODIN32_INCLUDE)\win -Igd -Imysql -I..\common
    15 !ifdef DEBUG
    16 CFLAGS   = $(CFLAGS)   -Ge+ -Tx+ -Tm- $(CINCLUDES)      -DNO_CLIENT_LONG_LONG -Wall+ppt-ppc-inl-cnv-gnr-vft- -Gh+ -DDEBUG_ALLOC
    17 CXXFLAGS = $(CXXFLAGS) -Ge+ -Gx- -Tx+ -Tm- $(CINCLUDES) -DNO_CLIENT_LONG_LONG -Wall+ppt-ppc-inl-cnv-gnr-vft- -Gh+ -DDEBUG_ALLOC
    18 LDFLAGS  = $(LDFLAGS)  -Ge+ -Fe$@ /B"/MAP:full /STACK:0x50000" $(RTLLIB) os2386.lib cppopa3.obj
    19 !else
    20 CFLAGS   = $(CFLAGS)   -Ge+ -Tx+ $(CINCLUDES)      -DNO_CLIENT_LONG_LONG -Wall+ppt-ppc-inl-cnv-gnr-vft-
    21 CXXFLAGS = $(CXXFLAGS) -Ge+ -Gx- -Tx+ $(CINCLUDES) -DNO_CLIENT_LONG_LONG -Wall+ppt-ppc-inl-cnv-gnr-vft-
    22 LDFLAGS  = $(LDFLAGS)  -Ge+ -Fe$@ /B"/MAP:full /STACK:0x50000" $(RTLLIB) os2386.lib
    23 !endif
     6#
    247
    258
    269#
    27 # All roule
     10# Common tools macros. (MAKE_CMD)
    2811#
    29 all: APIImport.exe StateUpd.exe kHTMLPC.exe   \
    30      ..\bin\APIImport.exe ..\bin\StateUpd.exe \
    31      ..\bin\kHTMLPC.exe
    32 
     12!include ../../makefile.inc
    3313
    3414
    3515#
    36 # APIImport
     16# dummy all rule - invoking nmake withtout target caused it to do all of the targets below..
    3717#
    38 APIImport.exe: APIImport.obj db.obj $(COMMONLIB) mysql\libmysqlclient.lib
    39    $(LD) $(LDFLAGS) $**
    40 
    41 ..\bin\APIImport.exe: APIImport.exe
    42    $(CP) $** $@
    43 
     18_all: all
    4419
    4520
    4621#
    47 # StateUpd
     22# All the common rules like all, lib, clean and dep.
    4823#
    49 StateUpd.exe: StateUpd.obj db.obj mysql\libmysqlclient.lib
    50    $(LD) $(LDFLAGS) $**
    51 
    52 ..\bin\StateUpd.exe: StateUpd.exe
    53    $(CP) $** $@
    54 
    55 
    56 
    57 #
    58 # kHTMLPC - HTML/Sql PreCompiler.
    59 #
    60 kHTMLPC.exe: kHTMLPC.obj db.obj gd/gdicc.lib mysql\libmysqlclient.lib
    61    $(LD) $(LDFLAGS) $**
    62 
    63 
    64 ..\bin\kHTMLPC.exe: kHTMLPC.exe
    65    $(CP) $** $@
    66 
    67 gd\gdicc.lib: force
    68    $(DODIRS) "gd" $(MAKE_CMD) gdicc.lib
    69 
    70 
    71 
    72 # kHTHMLPC - interference roules for preprocessing of kSqlHtml files.
    73 .SUFFIXES: .html .ksqlhtml .obj
    74 .kSqlHtml.html:
    75     kHTMLPC $<
    76 .kSqlHtml.obj: # Visual SlickEdit thinks everything complies to .obj files...
    77     kHTMLPC $<
     24$(COMMONRULES):
     25    $(MAKE_CMD) -f APIImport.mak $@
     26    $(MAKE_CMD) -f StateUpd.mak $@
    7827
    7928
     
    9847   -mysqladmin refresh
    9948
    100 
    101 
    102 #
    103 # Autogenerated depenencies.
    104 #
    105 dep:
    106     $(DEPEND) $(CINCLUDES) -o- *.h *.asm *.inc $(ODIN32_INCLUDE)\*.h \
    107         *.c *.cpp -objo *.c *.cpp
    108     $(DODIRS) "gd" $(MAKE_CMD) dep
    109 
    110 
    111 
    112 #
    113 # clean
    114 #
    115 clean:
    116     $(RM) *.obj *.lib *.o *.a *.dll *.exe *.pch *.log *.map *.html
    117 !ifdef ODIN32_BIN
    118     $(RM) $(ODIN32_BIN)\StateUpd.exe $(ODIN32_BIN)\APIImport.exe $(ODIN32_BIN)\kHTMLPC.exe
    119 !endif
    120     $(DODIRS) "gd" $(MAKE_CMD) clean
    121 
    122 
    123 
    124 #
    125 # Include the .depend file.
    126 #   If the depend file don't exists we'll complain about it.
    127 #
    128 !ifndef NODEP
    129 !   if [$(EXISTS) .depend] == 0
    130 !       include .depend
    131 !   else
    132 !       if [$(ECHO) .depend doesn't exist]
    133 !       endif
    134 !   endif
    135 !endif
    136 
    137 
    138 
    139 force:
    140     @$(ECHO) ...
    141 
    142 
    143 #
    144 # Common rules.
    145 #
    146 !include $(ODIN32_TCOMMON_POST_INC)
    147 
Note: See TracChangeset for help on using the changeset viewer.