• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LIBRARY = pixman-1
2
3CC = cl
4LD = link
5AR = lib
6PERL = perl
7
8ifeq ($(top_builddir),)
9top_builddir = $(top_srcdir)
10endif
11
12CFG_VAR = $(CFG)
13ifeq ($(CFG_VAR),)
14CFG_VAR = release
15endif
16
17ifeq ($(CFG_VAR),debug)
18CFG_CFLAGS  = -MDd -Od -Zi
19CFG_LDFLAGS = -DEBUG
20else
21CFG_CFLAGS  = -MD -O2
22CFG_LDFLAGS =
23endif
24
25# Package definitions, to be used instead of those provided in config.h
26PKG_CFLAGS  = -DPACKAGE=$(LIBRARY) -DPACKAGE_VERSION="" -DPACKAGE_BUGREPORT=""
27
28BASE_CFLAGS = -nologo -I. -I$(top_srcdir) -I$(top_srcdir)/pixman
29
30PIXMAN_CFLAGS  = $(BASE_CFLAGS) $(PKG_CFLAGS) $(CFG_CFLAGS) $(CFLAGS)
31PIXMAN_LDFLAGS = -nologo $(CFG_LDFLAGS) $(LDFLAGS)
32PIXMAN_ARFLAGS = -nologo $(LDFLAGS)
33
34
35inform:
36ifneq ($(CFG),release)
37ifneq ($(CFG),debug)
38ifneq ($(CFG),)
39	@echo "Invalid specified configuration option: "$(CFG)"."
40	@echo
41	@echo "Possible choices for configuration are 'release' and 'debug'"
42	@exit 1
43endif
44	@echo "Using default RELEASE configuration... (use CFG=release or CFG=debug)"
45endif
46endif
47
48
49$(CFG_VAR)/%.obj: %.c $(libpixman_headers)
50	@mkdir -p $(CFG_VAR)
51	@$(CC) -c $(PIXMAN_CFLAGS) -Fo"$@" $<
52
53clean: inform
54	@$(RM) $(CFG_VAR)/*.{exe,ilk,lib,obj,pdb} $(BUILT_SOURCES) || exit 0
55
56.PHONY: inform clean
57