Changeset 5530 for trunk/tools/database
- Timestamp:
- Apr 17, 2001, 2:24:09 AM (24 years ago)
- Location:
- trunk/tools/database
- Files:
-
- 4 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/database/Makefile
r4804 r5530 1 # $Id: Makefile,v 1.1 6 2000-12-16 20:10:07bird Exp $1 # $Id: Makefile,v 1.17 2001-04-17 00:24:09 bird Exp $ 2 2 3 3 # 4 # Common makefile for database utils. ICC edition4 # Odin32 Api Database Utilities. 5 5 # 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 # 24 7 25 8 26 9 # 27 # All roule10 # Common tools macros. (MAKE_CMD) 28 11 # 29 all: APIImport.exe StateUpd.exe kHTMLPC.exe \ 30 ..\bin\APIImport.exe ..\bin\StateUpd.exe \ 31 ..\bin\kHTMLPC.exe 32 12 !include ../../makefile.inc 33 13 34 14 35 15 # 36 # APIImport16 # dummy all rule - invoking nmake withtout target caused it to do all of the targets below.. 37 17 # 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 44 19 45 20 46 21 # 47 # StateUpd22 # All the common rules like all, lib, clean and dep. 48 23 # 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 $@ 78 27 79 28 … … 98 47 -mysqladmin refresh 99 48 100 101 102 #103 # Autogenerated depenencies.104 #105 dep:106 $(DEPEND) $(CINCLUDES) -o- *.h *.asm *.inc $(ODIN32_INCLUDE)\*.h \107 *.c *.cpp -objo *.c *.cpp108 $(DODIRS) "gd" $(MAKE_CMD) dep109 110 111 112 #113 # clean114 #115 clean:116 $(RM) *.obj *.lib *.o *.a *.dll *.exe *.pch *.log *.map *.html117 !ifdef ODIN32_BIN118 $(RM) $(ODIN32_BIN)\StateUpd.exe $(ODIN32_BIN)\APIImport.exe $(ODIN32_BIN)\kHTMLPC.exe119 !endif120 $(DODIRS) "gd" $(MAKE_CMD) clean121 122 123 124 #125 # Include the .depend file.126 # If the depend file don't exists we'll complain about it.127 #128 !ifndef NODEP129 ! if [$(EXISTS) .depend] == 0130 ! include .depend131 ! else132 ! if [$(ECHO) .depend doesn't exist]133 ! endif134 ! endif135 !endif136 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.