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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 71 |
72 # The linker and its options. | 72 # The linker and its options. |
73 LD = ilink32.exe | 73 LD = ilink32.exe |
74 LDFLAGS = -q -U$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION) | 74 LDFLAGS = -q -U$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION) |
75 LDFLAGS = $(LDFLAGS) -L"$(BINDIR);$(LIBPREFIX);$(LIB);$(BCB)\lib\PSdk" | 75 LDFLAGS = $(LDFLAGS) -L"$(BINDIR);$(LIBPREFIX);$(LIB);$(BCB)\lib;$(BCB)\lib\PSdk
" |
76 LIBS = import32.lib | 76 LIBS = import32.lib |
77 !if "$(WITH_THREADS)" != "no" && "$(DYNRUNTIME)" == "1" | 77 !if "$(WITH_THREADS)" != "no" && "$(DYNRUNTIME)" == "1" |
78 LIBS = $(LIBS) cw32mti.lib | 78 LIBS = $(LIBS) cw32mti.lib |
79 !elif "$(WITH_THREADS)" != "no" | 79 !elif "$(WITH_THREADS)" != "no" |
80 LIBS = $(LIBS) cw32mt.lib | 80 LIBS = $(LIBS) cw32mt.lib |
81 !elif "$(DYNRUNTIME)" == "1" | 81 !elif "$(DYNRUNTIME)" == "1" |
82 LIBS = $(LIBS) cw32i.lib | 82 LIBS = $(LIBS) cw32i.lib |
83 !else | 83 !else |
84 LIBS = $(LIBS) cw32.lib | 84 LIBS = $(LIBS) cw32.lib |
85 !endif | 85 !endif |
86 !if "$(WITH_FTP)" == "1" || "$(WITH_HTTP)" == "1" | 86 !if "$(WITH_FTP)" == "1" || "$(WITH_HTTP)" == "1" |
87 LIBS = $(LIBS) wsock32.lib | 87 LIBS = $(LIBS) wsock32.lib ws2_32.lib |
88 !endif | 88 !endif |
89 !if "$(WITH_ICONV)" == "1" | 89 !if "$(WITH_ICONV)" == "1" |
90 LIBS = $(LIBS) iconvomf.lib | 90 LIBS = $(LIBS) iconvomf.lib |
91 !endif | 91 !endif |
92 !if "$(WITH_ZLIB)" == "1" | 92 !if "$(WITH_ZLIB)" == "1" |
93 LIBS = $(LIBS) zlibomf.lib | 93 LIBS = $(LIBS) zlibomf.lib |
94 !endif | 94 !endif |
95 !if "$(WITH_THREADS)" == "posix" | 95 !if "$(WITH_THREADS)" == "posix" |
96 LIBS = $(LIBS) pthreadVC.lib | 96 LIBS = $(LIBS) pthreadVC.lib |
97 !endif | 97 !endif |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 $(CC) $(CFLAGS) -tWC -o$(UTILS_INTDIR)\$&.obj -c $< | 336 $(CC) $(CFLAGS) -tWC -o$(UTILS_INTDIR)\$&.obj -c $< |
337 $(LD) $(LDFLAGS) c0x32.obj $(UTILS_INTDIR)\$&.obj $(XML_IMP),$@,,$(LIBS)
| 337 $(LD) $(LDFLAGS) c0x32.obj $(UTILS_INTDIR)\$&.obj $(XML_IMP),$@,,$(LIBS)
|
338 !endif | 338 !endif |
339 | 339 |
340 # Builds xmllint and friends. Uses the implicit rule for commands. | 340 # Builds xmllint and friends. Uses the implicit rule for commands. |
341 $(UTILS) : $(UTILS_INTDIR)\$(DUMMY) $(BINDIR)\$(DUMMY) $(BINDIR)\$(XML_SO) $(BIN
DIR)\$(XML_A) | 341 $(UTILS) : $(UTILS_INTDIR)\$(DUMMY) $(BINDIR)\$(DUMMY) $(BINDIR)\$(XML_SO) $(BIN
DIR)\$(XML_A) |
342 | 342 |
343 # Source dependences should be autogenerated somehow here, but how to | 343 # Source dependences should be autogenerated somehow here, but how to |
344 # do it? I have no clue. | 344 # do it? I have no clue. |
345 | 345 |
OLD | NEW |