Remove obsolete bindings/ directory.
[wvstreams.git] / wvrules-msvc.mk
bloba1e8d8efa690b2f167ee92c6e3f92852a5d888ce
1 LIBWVBASE=$(shell cygpath -m $(WVSTREAMS)/libwvwin32.a)
2 LIBWVUTILS=$(LIBWVBASE)
3 LIBWVSTREAMS=$(LIBWVBASE)
4 LIBUNICONF=$(LIBWVBASE)
5 LIBWVTEST=$(LIBWVBASE) $(shell cygpath -m $(WVSTREAMS)/wvtestmain.o)
7 ifeq ($(DEBUG),1)
8 CPPFLAGS += /Zi /DDEBUG=1
9 CFLAGS += /Zi /DDEBUG=1
10 LDFLAGS += /Zi
11 else
12 CPPFLAGS += /DDEBUG=0
13 CFLAGS += /DDEBUG=0
14 #CFLAGS += /DNDEBUG=1 # I don't like disabling assertions...
15 endif
17 define wvcc_base
18 @rm -f "$1"
19 $(COMPILE_MSG)$4 $5 $2 /Fo$1
20 @# The Perl script here generates the proper dependencies, including
21 @# null dependencies so Make doesn't complain
22 $(DEPEND_MSG)gcc -MM $(DEPFLAGS) -E $< \
23 | perl -we \
24 '$$a = '"'"'$1'"'"'; \
25 $$\ = $$/; \
26 local $$/; \
27 while (<>) { \
28 for (split(/(?<!\\)$$/m)) { \
29 s/^[^:]+:\s*/$$a: /; \
30 print; \
31 if (s/^$$a: //) { \
32 map {print "$$_:" unless m/^\\$$/} (split(/\s+/));\
33 } \
34 } \
35 }' >$(DEPFILE)
36 endef
38 define wvlink_ar
39 lib $2 /OUT:$1
40 endef
42 wvlink=$(LINK_MSG)$(CC) $(LDFLAGS) $($1-LDFLAGS) /Fe$1 $(filter %.o %.a %.so, $2) $($1-LIBS) $(LIBS) $(XX_LIBS) $(LDLIBS)