summaryrefslogtreecommitdiff
path: root/src/Makefile.win32
blob: 6fdc3956010a83395d7e7f6b53865e4238b223f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
top_srcdir = ..
include $(top_srcdir)/build/Makefile.win32.common
include Makefile.win32.features

SOURCES = $(enabled_cairo_sources)

STATIC_SOURCES = cairo-system.c

OBJECTS = $(patsubst %.c, $(CFG)/%.obj, $(SOURCES))
OBJECTS_STATIC = $(patsubst %cairo-system.obj, %cairo-system-static.obj, $(OBJECTS))

static: inform $(CFG)/cairo-static.lib
dynamic: inform $(CFG)/cairo.dll

$(CFG)/cairo.dll: $(OBJECTS)
	$(CC) $(OPT) $(MS_MDFLAGS) $(MS_LDFLAGS) -Fe$@ $(PIXMAN_LIBS) $(OBJECTS) -link $(CAIRO_LIBS)

$(CFG)/cairo-static.lib: $(OBJECTS_STATIC)
	lib -NOLOGO -OUT:$@ $(PIXMAN_LIBS) $(OBJECTS_STATIC)

all: inform $(CFG)/cairo.dll $(CFG)/cairo-static.lib
	@echo "Built successfully!"
	@echo "You should copy the following files to a proper place now:"
	@echo ""
	@echo "	cairo-version.h (NOTE: toplevel, not the src/cairo-version.h one!)"
	@echo "	src/cairo-features.h"
	@for x in $(enabled_cairo_headers); do echo "	src/$$x"; done
	@echo "	src/$(CFG)/cairo.dll"
	@echo "	src/$(CFG)/cairo-static.lib"