mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-22 13:48:08 +02:00
This patch adds a bunch of makefiles for building cairo with Visual C++. gnu make is still required, and make must be run from a command prompt that has the Visual C++ paths set up, as well as has the cygwin environment in the path. Run 'make -f Makefile.win32'.
18 lines
312 B
Text
18 lines
312 B
Text
CC = cl
|
|
CFLAGS = /nologo /Zi /O2 /I../src /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
|
|
|
|
SOURCES = \
|
|
cairo-boilerplate.c \
|
|
xmalloc.c \
|
|
$(NULL)
|
|
|
|
OBJECTS = $(subst .c,.obj,$(SOURCES))
|
|
|
|
all: boiler.lib
|
|
|
|
%.obj: %.c
|
|
@$(CC) $(CFLAGS) /c /Fo"$@" $<
|
|
|
|
boiler.lib: $(OBJECTS)
|
|
lib /NOLOGO /OUT:$@ $(OBJECTS)
|
|
|