| OLD | NEW |
| 1 # Makefile for libxml2, specific for Windows, BCB6 and Borland make. | 1 # Makefile for libxml2, specific for Windows, BCB6 and Borland make. |
| 2 # | 2 # |
| 3 # Take a look at the beginning and modify the variables to suit your | 3 # Take a look at the beginning and modify the variables to suit your |
| 4 # environment. Having done that, you can do a | 4 # environment. Having done that, you can do a |
| 5 # | 5 # |
| 6 # make [all] to build the libxml and the accompanying utilities. | 6 # make [all] to build the libxml and the accompanying utilities. |
| 7 # make clean to remove all compiler output files and return to a | 7 # make clean to remove all compiler output files and return to a |
| 8 # clean state. | 8 # clean state. |
| 9 # make rebuild to rebuild everything from scratch. This basically does | 9 # make rebuild to rebuild everything from scratch. This basically does |
| 10 # a 'nmake clean' and then a 'nmake all'. | 10 # a 'nmake clean' and then a 'nmake all'. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 DUMMY = dir.exists | 36 DUMMY = dir.exists |
| 37 | 37 |
| 38 # Place where we let the compiler put its intermediate trash. | 38 # Place where we let the compiler put its intermediate trash. |
| 39 BINDIR = bin.bcb | 39 BINDIR = bin.bcb |
| 40 XML_INTDIR = int.bcb | 40 XML_INTDIR = int.bcb |
| 41 XML_INTDIR_A = int.a.bcb | 41 XML_INTDIR_A = int.a.bcb |
| 42 UTILS_INTDIR = int.utils.bcb | 42 UTILS_INTDIR = int.utils.bcb |
| 43 | 43 |
| 44 # The preprocessor and its options. | 44 # The preprocessor and its options. |
| 45 CPP = cpp32.exe -P- -DWIN32 | 45 CPP = cpp32.exe -P- -DWIN32 |
| 46 CPPFLAGS = -I"$(XML_SRCDIR)\include" | 46 CPPFLAGS = -I"$(XML_SRCDIR)\include" -DNOLIBTOOL |
| 47 !if "$(WITH_THREADS)" != "no" | 47 !if "$(WITH_THREADS)" != "no" |
| 48 CPPFLAGS = $(CPPFLAGS) -D_REENTRANT -D__MT__ | 48 CPPFLAGS = $(CPPFLAGS) -D_REENTRANT -D__MT__ |
| 49 !endif | 49 !endif |
| 50 | 50 |
| 51 # The compiler and its options. | 51 # The compiler and its options. |
| 52 CC = bcc32.exe | 52 CC = bcc32.exe |
| 53 CFLAGS = -q -DWIN32 -D_NO_VCL -D_WINDOWS -D_MBCS -DEILSEQ=2 -w- | 53 CFLAGS = -q -DWIN32 -D_NO_VCL -D_WINDOWS -D_MBCS -DEILSEQ=2 -DNOLIBTOOL -w- |
| 54 CFLAGS = $(CFLAGS) -I"$(XML_SRCDIR)" -I"$(XML_SRCDIR)\include" -I"$(INCPREFIX)"
-I"$(INCLUDE)" | 54 CFLAGS = $(CFLAGS) -I"$(XML_SRCDIR)" -I"$(XML_SRCDIR)\include" -I"$(INCPREFIX)"
-I"$(INCLUDE)" |
| 55 !if "$(WITH_THREADS)" != "no" | 55 !if "$(WITH_THREADS)" != "no" |
| 56 CFLAGS = $(CFLAGS) -D_REENTRANT -tWM | 56 CFLAGS = $(CFLAGS) -D_REENTRANT -tWM |
| 57 !endif | 57 !endif |
| 58 !if "$(DYNRUNTIME)" == "1" | 58 !if "$(DYNRUNTIME)" == "1" |
| 59 CFLAGS = $(CFLAGS) -tWR | 59 CFLAGS = $(CFLAGS) -tWR |
| 60 !endif | 60 !endif |
| 61 !if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls" | 61 !if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls" |
| 62 CFLAGS = $(CFLAGS) -DHAVE_WIN32_THREADS -DHAVE_COMPILER_TLS | 62 CFLAGS = $(CFLAGS) -DHAVE_WIN32_THREADS -DHAVE_COMPILER_TLS |
| 63 !else if "$(WITH_THREADS)" == "native" | 63 !else if "$(WITH_THREADS)" == "native" |
| 64 CFLAGS = $(CFLAGS) -DHAVE_WIN32_THREADS | 64 CFLAGS = $(CFLAGS) -DHAVE_WIN32_THREADS |
| 65 !else if "$(WITH_THREADS)" == "posix" | 65 !else if "$(WITH_THREADS)" == "posix" |
| 66 CFLAGS = $(CFLAGS) -DHAVE_PTHREAD_H | 66 CFLAGS = $(CFLAGS) -DHAVE_PTHREAD_H |
| 67 !endif | 67 !endif |
| 68 !if "$(WITH_ZLIB)" == "1" | 68 !if "$(WITH_ZLIB)" == "1" |
| 69 CFLAGS = $(CFLAGS) -DHAVE_ZLIB_H | 69 CFLAGS = $(CFLAGS) -DHAVE_ZLIB_H |
| 70 !endif | 70 !endif |
| 71 !if "$(WITH_LZMA)" == "1" |
| 72 CFLAGS = $(CFLAGS) -DHAVE_LZMA_H |
| 73 !endif |
| 71 | 74 |
| 72 # The linker and its options. | 75 # The linker and its options. |
| 73 LD = ilink32.exe | 76 LD = ilink32.exe |
| 74 LDFLAGS = -q -U$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION) | 77 LDFLAGS = -q -U$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION) |
| 75 LDFLAGS = $(LDFLAGS) -L"$(BINDIR);$(LIBPREFIX);$(LIB);$(BCB)\lib;$(BCB)\lib\PSdk
" | 78 LDFLAGS = $(LDFLAGS) -L"$(BINDIR);$(LIBPREFIX);$(LIB);$(BCB)\lib;$(BCB)\lib\PSdk
" |
| 76 LIBS = import32.lib | 79 LIBS = import32.lib |
| 77 !if "$(WITH_THREADS)" != "no" && "$(DYNRUNTIME)" == "1" | 80 !if "$(WITH_THREADS)" != "no" && "$(DYNRUNTIME)" == "1" |
| 78 LIBS = $(LIBS) cw32mti.lib | 81 LIBS = $(LIBS) cw32mti.lib |
| 79 !elif "$(WITH_THREADS)" != "no" | 82 !elif "$(WITH_THREADS)" != "no" |
| 80 LIBS = $(LIBS) cw32mt.lib | 83 LIBS = $(LIBS) cw32mt.lib |
| 81 !elif "$(DYNRUNTIME)" == "1" | 84 !elif "$(DYNRUNTIME)" == "1" |
| 82 LIBS = $(LIBS) cw32i.lib | 85 LIBS = $(LIBS) cw32i.lib |
| 83 !else | 86 !else |
| 84 LIBS = $(LIBS) cw32.lib | 87 LIBS = $(LIBS) cw32.lib |
| 85 !endif | 88 !endif |
| 86 !if "$(WITH_FTP)" == "1" || "$(WITH_HTTP)" == "1" | 89 !if "$(WITH_FTP)" == "1" || "$(WITH_HTTP)" == "1" |
| 87 LIBS = $(LIBS) wsock32.lib ws2_32.lib | 90 LIBS = $(LIBS) wsock32.lib ws2_32.lib |
| 88 !endif | 91 !endif |
| 89 !if "$(WITH_ICONV)" == "1" | 92 !if "$(WITH_ICONV)" == "1" |
| 90 LIBS = $(LIBS) iconvomf.lib | 93 LIBS = $(LIBS) iconvomf.lib |
| 91 !endif | 94 !endif |
| 92 !if "$(WITH_ZLIB)" == "1" | 95 !if "$(WITH_ZLIB)" == "1" |
| 93 LIBS = $(LIBS) zlibomf.lib | 96 LIBS = $(LIBS) zlibomf.lib |
| 94 !endif | 97 !endif |
| 98 !if "$(WITH_LZMA)" == "1" |
| 99 LIBS = $(LIBS) liblzma.lib |
| 100 !endif |
| 95 !if "$(WITH_THREADS)" == "posix" | 101 !if "$(WITH_THREADS)" == "posix" |
| 96 LIBS = $(LIBS) pthreadVC.lib | 102 LIBS = $(LIBS) pthreadVC.lib |
| 97 !endif | 103 !endif |
| 98 !if "$(WITH_MODULES)" == "1" | 104 !if "$(WITH_MODULES)" == "1" |
| 99 LIBS = $(LIBS) kernel32.lib | 105 LIBS = $(LIBS) kernel32.lib |
| 100 !endif | 106 !endif |
| 101 | 107 |
| 102 # The archiver and its options. | 108 # The archiver and its options. |
| 103 AR = tlib.exe | 109 AR = tlib.exe |
| 104 ARFLAGS = /P64 /0 | 110 ARFLAGS = /P64 /0 |
| 105 | 111 |
| 106 # Optimisation and debug symbols. | 112 # Optimisation and debug symbols. |
| 107 !if "$(DEBUG)" == "1" | 113 !if "$(DEBUG)" == "1" |
| 108 CFLAGS = $(CFLAGS) -D_DEBUG -Od -v | 114 CFLAGS = $(CFLAGS) -D_DEBUG -Od -v |
| 109 LDFLAGS = $(LDFLAGS) -v | 115 LDFLAGS = $(LDFLAGS) -v |
| 110 !else | 116 !else |
| 111 CFLAGS = $(CFLAGS) -DNDEBUG -O2 | 117 CFLAGS = $(CFLAGS) -DNDEBUG -O2 |
| 112 LDFLAGS = $(LDFLAGS) | 118 LDFLAGS = $(LDFLAGS) |
| 113 !endif | 119 !endif |
| 114 | 120 |
| 115 # Libxml object files. | 121 # Libxml object files. |
| 116 XML_OBJS = $(XML_INTDIR)\c14n.obj\ | 122 XML_OBJS = $(XML_INTDIR)\buf.obj\ |
| 123 » $(XML_INTDIR)\c14n.obj\ |
| 117 $(XML_INTDIR)\catalog.obj\ | 124 $(XML_INTDIR)\catalog.obj\ |
| 118 $(XML_INTDIR)\chvalid.obj\ | 125 $(XML_INTDIR)\chvalid.obj\ |
| 119 $(XML_INTDIR)\debugXML.obj\ | 126 $(XML_INTDIR)\debugXML.obj\ |
| 120 $(XML_INTDIR)\dict.obj\ | 127 $(XML_INTDIR)\dict.obj\ |
| 121 $(XML_INTDIR)\DOCBparser.obj\ | 128 $(XML_INTDIR)\DOCBparser.obj\ |
| 122 $(XML_INTDIR)\encoding.obj\ | 129 $(XML_INTDIR)\encoding.obj\ |
| 123 $(XML_INTDIR)\entities.obj\ | 130 $(XML_INTDIR)\entities.obj\ |
| 124 $(XML_INTDIR)\error.obj\ | 131 $(XML_INTDIR)\error.obj\ |
| 125 $(XML_INTDIR)\globals.obj\ | 132 $(XML_INTDIR)\globals.obj\ |
| 126 $(XML_INTDIR)\hash.obj\ | 133 $(XML_INTDIR)\hash.obj\ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 151 $(XML_INTDIR)\xmlsave.obj\ | 158 $(XML_INTDIR)\xmlsave.obj\ |
| 152 $(XML_INTDIR)\xmlschemas.obj\ | 159 $(XML_INTDIR)\xmlschemas.obj\ |
| 153 $(XML_INTDIR)\xmlschemastypes.obj\ | 160 $(XML_INTDIR)\xmlschemastypes.obj\ |
| 154 $(XML_INTDIR)\xmlunicode.obj\ | 161 $(XML_INTDIR)\xmlunicode.obj\ |
| 155 $(XML_INTDIR)\xmlwriter.obj\ | 162 $(XML_INTDIR)\xmlwriter.obj\ |
| 156 $(XML_INTDIR)\xpath.obj\ | 163 $(XML_INTDIR)\xpath.obj\ |
| 157 $(XML_INTDIR)\xpointer.obj\ | 164 $(XML_INTDIR)\xpointer.obj\ |
| 158 $(XML_INTDIR)\xmlstring.obj | 165 $(XML_INTDIR)\xmlstring.obj |
| 159 | 166 |
| 160 # Static libxml object files. | 167 # Static libxml object files. |
| 161 XML_OBJS_A = $(XML_INTDIR_A)\c14n.obj\ | 168 XML_OBJS_A = $(XML_INTDIR_A)\buf.obj\ |
| 169 » $(XML_INTDIR_A)\c14n.obj\ |
| 162 $(XML_INTDIR_A)\catalog.obj\ | 170 $(XML_INTDIR_A)\catalog.obj\ |
| 163 $(XML_INTDIR_A)\chvalid.obj\ | 171 $(XML_INTDIR_A)\chvalid.obj\ |
| 164 $(XML_INTDIR_A)\debugXML.obj\ | 172 $(XML_INTDIR_A)\debugXML.obj\ |
| 165 $(XML_INTDIR_A)\dict.obj\ | 173 $(XML_INTDIR_A)\dict.obj\ |
| 166 $(XML_INTDIR_A)\DOCBparser.obj\ | 174 $(XML_INTDIR_A)\DOCBparser.obj\ |
| 167 $(XML_INTDIR_A)\encoding.obj\ | 175 $(XML_INTDIR_A)\encoding.obj\ |
| 168 $(XML_INTDIR_A)\entities.obj\ | 176 $(XML_INTDIR_A)\entities.obj\ |
| 169 $(XML_INTDIR_A)\error.obj\ | 177 $(XML_INTDIR_A)\error.obj\ |
| 170 $(XML_INTDIR_A)\globals.obj\ | 178 $(XML_INTDIR_A)\globals.obj\ |
| 171 $(XML_INTDIR_A)\hash.obj\ | 179 $(XML_INTDIR_A)\hash.obj\ |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 $(BINDIR)\testReader.exe\ | 220 $(BINDIR)\testReader.exe\ |
| 213 $(BINDIR)\testRelax.exe\ | 221 $(BINDIR)\testRelax.exe\ |
| 214 $(BINDIR)\testRegexp.exe\ | 222 $(BINDIR)\testRegexp.exe\ |
| 215 $(BINDIR)\testModule.exe\ | 223 $(BINDIR)\testModule.exe\ |
| 216 $(BINDIR)\testSAX.exe\ | 224 $(BINDIR)\testSAX.exe\ |
| 217 $(BINDIR)\testSchemas.exe\ | 225 $(BINDIR)\testSchemas.exe\ |
| 218 $(BINDIR)\testURI.exe\ | 226 $(BINDIR)\testURI.exe\ |
| 219 $(BINDIR)\testXPath.exe\ | 227 $(BINDIR)\testXPath.exe\ |
| 220 $(BINDIR)\runtest.exe\ | 228 $(BINDIR)\runtest.exe\ |
| 221 $(BINDIR)\runsuite.exe\ | 229 $(BINDIR)\runsuite.exe\ |
| 222 » $(BINDIR)\testapi.exe | 230 » $(BINDIR)\testapi.exe\ |
| 231 » $(BINDIR)\testlimits.exe |
| 223 | 232 |
| 224 | 233 |
| 225 !if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls" || "$(WITH_THREADS
)" == "native" | 234 !if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls" || "$(WITH_THREADS
)" == "native" |
| 226 UTILS = $(UTILS) $(BINDIR)\testThreadsWin32.exe | 235 UTILS = $(UTILS) $(BINDIR)\testThreadsWin32.exe |
| 227 !else if "$(WITH_THREADS)" == "posix" | 236 !else if "$(WITH_THREADS)" == "posix" |
| 228 UTILS = $(UTILS) $(BINDIR)\testThreads.exe | 237 UTILS = $(UTILS) $(BINDIR)\testThreads.exe |
| 229 !endif | 238 !endif |
| 230 | 239 |
| 231 | 240 |
| 232 all : libxml libxmla utils | 241 all : libxml libxmla utils |
| (...skipping 10 matching lines...) Expand all Loading... |
| 243 if exist $(UTILS_INTDIR) rmdir /S /Q $(UTILS_INTDIR) | 252 if exist $(UTILS_INTDIR) rmdir /S /Q $(UTILS_INTDIR) |
| 244 if exist $(BINDIR) rmdir /S /Q $(BINDIR) | 253 if exist $(BINDIR) rmdir /S /Q $(BINDIR) |
| 245 | 254 |
| 246 distclean : clean | 255 distclean : clean |
| 247 if exist config.* del config.* | 256 if exist config.* del config.* |
| 248 if exist Makefile del Makefile | 257 if exist Makefile del Makefile |
| 249 | 258 |
| 250 rebuild : clean all | 259 rebuild : clean all |
| 251 | 260 |
| 252 install-libs : all | 261 install-libs : all |
| 253 » if not exist "$(INCPREFIX)\libxml" mkdir "$(INCPREFIX)\libxml" | 262 » if not exist "$(INCPREFIX)\libxml2" mkdir "$(INCPREFIX)\libxml2" |
| 263 » if not exist "$(INCPREFIX)\libxml2\libxml" mkdir "$(INCPREFIX)\libxml2\l
ibxml" |
| 254 if not exist "$(BINPREFIX)" mkdir "$(BINPREFIX)" | 264 if not exist "$(BINPREFIX)" mkdir "$(BINPREFIX)" |
| 255 if not exist "$(LIBPREFIX)" mkdir "$(LIBPREFIX)" | 265 if not exist "$(LIBPREFIX)" mkdir "$(LIBPREFIX)" |
| 256 » copy $(XML_SRCDIR)\include\libxml\*.h "$(INCPREFIX)\libxml" | 266 » copy $(XML_SRCDIR)\include\libxml\*.h "$(INCPREFIX)\libxml2\libxml" |
| 257 copy $(BINDIR)\$(XML_SO) "$(SOPREFIX)" | 267 copy $(BINDIR)\$(XML_SO) "$(SOPREFIX)" |
| 258 copy $(BINDIR)\$(XML_A) "$(LIBPREFIX)" | 268 copy $(BINDIR)\$(XML_A) "$(LIBPREFIX)" |
| 259 copy $(BINDIR)\$(XML_IMP) "$(LIBPREFIX)" | 269 copy $(BINDIR)\$(XML_IMP) "$(LIBPREFIX)" |
| 260 copy $(BINDIR)\*.exe "$(BINPREFIX)" | 270 copy $(BINDIR)\*.exe "$(BINPREFIX)" |
| 261 | 271 |
| 262 install : install-libs | 272 install : install-libs |
| 263 copy $(BINDIR)\*.exe "$(BINPREFIX)" | 273 copy $(BINDIR)\*.exe "$(BINPREFIX)" |
| 264 | 274 |
| 265 install-dist : install-libs | 275 install-dist : install-libs |
| 266 copy $(BINDIR)\xml*.exe "$(BINPREFIX)" | 276 copy $(BINDIR)\xml*.exe "$(BINPREFIX)" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 $(CC) $(CFLAGS) -tWC -o$(UTILS_INTDIR)\$&.obj -c $< | 346 $(CC) $(CFLAGS) -tWC -o$(UTILS_INTDIR)\$&.obj -c $< |
| 337 $(LD) $(LDFLAGS) c0x32.obj $(UTILS_INTDIR)\$&.obj $(XML_IMP),$@,,$(LIBS)
| 347 $(LD) $(LDFLAGS) c0x32.obj $(UTILS_INTDIR)\$&.obj $(XML_IMP),$@,,$(LIBS)
|
| 338 !endif | 348 !endif |
| 339 | 349 |
| 340 # Builds xmllint and friends. Uses the implicit rule for commands. | 350 # Builds xmllint and friends. Uses the implicit rule for commands. |
| 341 $(UTILS) : $(UTILS_INTDIR)\$(DUMMY) $(BINDIR)\$(DUMMY) $(BINDIR)\$(XML_SO) $(BIN
DIR)\$(XML_A) | 351 $(UTILS) : $(UTILS_INTDIR)\$(DUMMY) $(BINDIR)\$(DUMMY) $(BINDIR)\$(XML_SO) $(BIN
DIR)\$(XML_A) |
| 342 | 352 |
| 343 # Source dependences should be autogenerated somehow here, but how to | 353 # Source dependences should be autogenerated somehow here, but how to |
| 344 # do it? I have no clue. | 354 # do it? I have no clue. |
| 345 | 355 |
| OLD | NEW |