diff options
author | sanine <sanine.not@pm.me> | 2022-10-12 13:26:36 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-10-12 13:26:36 -0500 |
commit | f567ea1e2798fd3156a416e61f083ea3e6b95719 (patch) | |
tree | 53b51bda93aadf9dd13fcd77635b8c4b5c813768 /libs/pixman-0.40.0/Makefile.win32.common | |
parent | 530ffd0b7d3c39757b20f00716e486b5caf89aff (diff) |
add pixman and libpngraylib
Diffstat (limited to 'libs/pixman-0.40.0/Makefile.win32.common')
-rw-r--r-- | libs/pixman-0.40.0/Makefile.win32.common | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/libs/pixman-0.40.0/Makefile.win32.common b/libs/pixman-0.40.0/Makefile.win32.common new file mode 100644 index 0000000..1b2f894 --- /dev/null +++ b/libs/pixman-0.40.0/Makefile.win32.common @@ -0,0 +1,73 @@ +LIBRARY = pixman-1 + +ifeq ($(shell echo ""),) +# POSIX style shell +mkdir_p = mkdir -p $1 +rm = $(RM) $1 +echo = echo "$1" +else +# DOS/Windows style shell +mkdir_p = if not exist $(subst /,\,$1) md $(subst /,\,$1) +echo = echo $1 +rm = del $(subst /,\,$1) +endif + +CC = cl +LD = link +AR = lib +PERL = perl + +ifneq ($(shell echo ""),) +RM = del +endif + +ifeq ($(top_builddir),) +top_builddir = $(top_srcdir) +endif + +CFG_VAR = $(CFG) +ifeq ($(CFG_VAR),) +CFG_VAR = release +endif + +ifeq ($(CFG_VAR),debug) +CFG_CFLAGS = -MDd -Od -Zi +CFG_LDFLAGS = -DEBUG +else +CFG_CFLAGS = -MD -O2 +CFG_LDFLAGS = +endif + +# Package definitions, to be used instead of those provided in config.h +PKG_CFLAGS = -DPACKAGE=$(LIBRARY) -DPACKAGE_VERSION="" -DPACKAGE_BUGREPORT="" + +BASE_CFLAGS = -nologo -I. -I$(top_srcdir) -I$(top_srcdir)/pixman + +PIXMAN_CFLAGS = $(BASE_CFLAGS) $(PKG_CFLAGS) $(CFG_CFLAGS) $(CFLAGS) +PIXMAN_LDFLAGS = -nologo $(CFG_LDFLAGS) $(LDFLAGS) +PIXMAN_ARFLAGS = -nologo $(LDFLAGS) + + +inform: +ifneq ($(CFG),release) +ifneq ($(CFG),debug) +ifneq ($(CFG),) + @echo "Invalid specified configuration option: "$(CFG)"." + @echo + @echo "Possible choices for configuration are 'release' and 'debug'" + @exit 1 +endif + @echo "Using default RELEASE configuration... (use CFG=release or CFG=debug)" +endif +endif + +$(CFG_VAR): + @$(call mkdir_p,$@) + +$(CFG_VAR)/%.obj: %.c $(libpixman_headers) | $(CFG_VAR) + $(CC) -c $(PIXMAN_CFLAGS) -Fo"$@" $< + +clean: inform $(CFG_VAR) + -$(call rm,$(CFG_VAR)/*.exe $(CFG_VAR)/*.ilk $(CFG_VAR)/*.lib $(CFG_VAR)/*.obj $(CFG_VAR)/*.pdb) + +.PHONY: inform clean |