diff options
author | Vladimir Vukicevic <vladimir@pobox.com> | 2006-09-09 23:29:17 -0700 |
---|---|---|
committer | U-CYCLONE\Vladimir Vukicevic <vladimir@cyclone.(none)> | 2006-09-09 23:29:17 -0700 |
commit | 00d5a2ed48d999a29708d4750c034bbf1b91de12 (patch) | |
tree | d36db3348548bd1818089194ec3e088329e5e097 | |
parent | d78fd375d3f99a5bb4a4799ce5d90a2a946a854c (diff) |
[win32] Makefile.win32: use correct (/MD) runtime library flag everywhere
There was a bad mix of LIBCMT (the static runtime lib) and MSVCRT (the dynamic
one) before, because LIBCMT is the default. This specifies /MD everywhere.
-rw-r--r-- | Makefile.win32 | 3 | ||||
-rw-r--r-- | boilerplate/Makefile.win32 | 2 | ||||
-rw-r--r-- | pixman/src/Makefile.win32 | 2 | ||||
-rw-r--r-- | src/Makefile.win32 | 4 | ||||
-rw-r--r-- | test/Makefile.win32 | 6 |
5 files changed, 8 insertions, 9 deletions
diff --git a/Makefile.win32 b/Makefile.win32 index 048275dc..25fee716 100644 --- a/Makefile.win32 +++ b/Makefile.win32 @@ -23,7 +23,8 @@ test: cairo @list='$(TEST_SUBDIRS)'; for f in $$list ; do \ echo making all in $$f... ; \ (cd $$f ; make -f Makefile.win32) || exit 1 ; \ - done ; + done + @(cd test ; make -f Makefile.win32 test) html: @(cd test ; make -f Makefile.win32 html) diff --git a/boilerplate/Makefile.win32 b/boilerplate/Makefile.win32 index c2696c77..87c1d44e 100644 --- a/boilerplate/Makefile.win32 +++ b/boilerplate/Makefile.win32 @@ -1,5 +1,5 @@ CC = cl -CFLAGS = /nologo /Zi /O2 /I../src /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE +CFLAGS = /nologo /MD /Zi /O2 /I../src /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE SOURCES = \ cairo-boilerplate.c \ diff --git a/pixman/src/Makefile.win32 b/pixman/src/Makefile.win32 index 8f9ad165..ec83f731 100644 --- a/pixman/src/Makefile.win32 +++ b/pixman/src/Makefile.win32 @@ -1,5 +1,5 @@ CC = cl -CFLAGS = /nologo /Zi /O2 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE +CFLAGS = /nologo /MD /Zi /O2 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE SOURCES = \ fbcompose.c \ diff --git a/src/Makefile.win32 b/src/Makefile.win32 index 50b419df..1b91d4d8 100644 --- a/src/Makefile.win32 +++ b/src/Makefile.win32 @@ -1,7 +1,7 @@ CC = cl LINK = link -CFLAGS = /Zi /nologo /O2 /c /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /I../pixman/src /I. /DPACKAGE_VERSION="" /DPACKAGE_BUGREPORT="" +CFLAGS = /MD /Zi /nologo /O2 /c /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /I../pixman/src /I. /DPACKAGE_VERSION="" /DPACKAGE_BUGREPORT="" DEFFILE = cairo.def srcdir = `pwd` @@ -97,7 +97,7 @@ $(DEFFILE): @ ! grep -q cairo_ERROR $@ || ($(RM) $@; false) cairo.dll: $(OBJECTS) $(SHARED_OBJECTS) $(DEFFILE) - $(CC) /Zi /LD /Fe$@ ../pixman/src/pixman.lib $(OBJECTS) $(SHARED_OBJECTS) /link /DEF:$(DEFFILE) user32.lib gdi32.lib libpng.lib zlib.lib /NODEFAULTLIB:LIBCMT + $(CC) /MD /Zi /LD /Fe$@ ../pixman/src/pixman.lib $(OBJECTS) $(SHARED_OBJECTS) /link /DEF:$(DEFFILE) user32.lib gdi32.lib libpng.lib zlib.lib cairo-static.lib: $(OBJECTS) $(STATIC_OBJECTS) lib /NOLOGO /OUT:$@ ../pixman/src/pixman.lib $(OBJECTS) $(STATIC_OBJECTS) diff --git a/test/Makefile.win32 b/test/Makefile.win32 index 9ffa3ba4..5eefdedc 100644 --- a/test/Makefile.win32 +++ b/test/Makefile.win32 @@ -1,5 +1,5 @@ CC = cl -CFLAGS = /nologo /Zi /O2 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /I../src /I../pixman/src /I../boilerplate +CFLAGS = /nologo /Zi /O2 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /I../src /I../pixman/src /I../boilerplate LDFLAGS = ../src/cairo.lib ../pixman/src/pixman.lib ../boilerplate/boiler.lib libpng.lib zlib.lib gdi32.lib msimg32.lib user32.lib TESTS = \ @@ -87,8 +87,6 @@ push-group \ zero-alpha \ $(NULL) -BOILER_LIB = ../boilerplate/boiler.lib - TESTCORE_SOURCES = \ cairo-test.c \ buffer-diff.c \ @@ -99,7 +97,7 @@ TEST_EXE = $(addsuffix .exe,$(TESTS)) all: $(TEST_EXE) %.exe: %.c - @$(CC) $(CFLAGS) /Fe"$@" $< $(TESTCORE_SOURCES) $(LDFLAGS) $(BOILER_LIB) + @$(CC) $(CFLAGS) /Fe"$@" $< $(TESTCORE_SOURCES) /link $(LDFLAGS) test: $(TEST_EXE) @for exe in $(TEST_EXE) ; do \ |