Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/libart_lgpl
diff options
context:
space:
mode:
authorBruno Coudoin <bcoudoin@src.gnome.org>2007-06-15 23:07:31 (GMT)
committer Bruno Coudoin <bcoudoin@src.gnome.org>2007-06-15 23:07:31 (GMT)
commit05467d901c3ec4360a769c70e942046abd21ca23 (patch)
tree739281e697ebc3559e7e8e8ec880333955fe6b80 /src/libart_lgpl
parent849610e238991f12bc02cd75e5867d980b54291d (diff)
Updated windows compilation
svn path=/trunk/; revision=2705
Diffstat (limited to 'src/libart_lgpl')
-rw-r--r--src/libart_lgpl/Makefile.mingw163
1 files changed, 163 insertions, 0 deletions
diff --git a/src/libart_lgpl/Makefile.mingw b/src/libart_lgpl/Makefile.mingw
new file mode 100644
index 0000000..978cdc7
--- /dev/null
+++ b/src/libart_lgpl/Makefile.mingw
@@ -0,0 +1,163 @@
+#
+# Makefile.mingw
+#
+
+#
+# PATHS
+#
+
+GCOMPRIS_PLUGINS := .
+GCOMPRIS_TOP := ../..
+GTK_TOP := /gtk
+GLIB_TOP := /glib
+GNUWIN32_TOP := /gnuwin32
+
+##
+## VARIABLE DEFINITIONS
+##
+
+# Compiler Options
+
+CFLAGS =
+
+DEFINES =
+
+.SUFFIXES:
+.SUFFIXES: .c .a
+
+##
+## INCLUDE MAKEFILES
+##
+
+include $(GCOMPRIS_TOP)/global_win32.mak
+
+##
+## INCLUDE PATHS
+##
+
+INCLUDE_PATHS += -I$(GTK_TOP)/include \
+ -I$(GTK_TOP)/include/gtk-2.0 \
+ -I$(GLIB_TOP)/include/glib-2.0 \
+ -I$(GTK_TOP)/include/pango-1.0 \
+ -I$(GTK_TOP)/include/atk-1.0 \
+ -I$(GLIB_TOP)/lib/glib-2.0/include \
+ -I$(GTK_TOP)/lib/gtk-2.0/include \
+ -I$(GTK_TOP)/include/atk-1.0 \
+ -I$(GTK_TOP)/include/freetype2 \
+ -I$(GNUWIN32_TOP)/include \
+ -I$(GCOMPRIS_TOP) \
+ -I$(GCOMPRIS_TOP)/src
+
+
+
+
+LIB_PATHS = -L$(GTK_TOP)/lib \
+ -L$(GNUWIN32_TOP)/lib
+
+
+##
+## LIBRARIES
+##
+
+LIBS = -lgtk-win32-2.0 \
+ -lglib-2.0 \
+ -lgdk-win32-2.0 \
+ -lgobject-2.0 \
+ -lgmodule-2.0 \
+ -lgdk_pixbuf-2.0 \
+ -lpango-1.0 \
+ -latk-1.0 \
+ -lpangowin32-1.0 \
+ -lgdi32 -lgthread-2.0 \
+ -lintl \
+ -lws2_32
+
+##
+## RULES
+##
+
+##
+## TARGET DEFINITIONS
+##
+
+.PHONY: all clean
+
+all: libart_lgpl
+
+install:
+
+##
+## SOURCES, OBJECTS
+##
+LIBART_C_SRC = \
+ art_affine.c \
+ art_alphagamma.c \
+ art_bpath.c \
+ art_gray_svp.c \
+ art_misc.c \
+ art_pixbuf.c \
+ art_rect.c \
+ art_rect_svp.c \
+ art_rect_uta.c \
+ art_render.c \
+ art_render_gradient.c \
+ art_render_mask.c \
+ art_render_svp.c \
+ art_rgb.c \
+ art_rgb_affine.c \
+ art_rgb_affine_private.c \
+ art_rgb_affine_private.h \
+ art_rgb_bitmap_affine.c \
+ art_rgb_pixbuf_affine.c \
+ art_rgb_rgba_affine.c \
+ art_rgb_a_affine.c \
+ art_rgba.c \
+ art_rgb_svp.c \
+ art_svp.c \
+ art_svp_intersect.c \
+ art_svp_ops.c \
+ art_svp_point.c \
+ art_svp_render_aa.c \
+ art_svp_vpath.c \
+ art_svp_vpath_stroke.c \
+ art_svp_wind.c \
+ art_uta.c \
+ art_uta_ops.c \
+ art_uta_rect.c \
+ art_uta_vpath.c \
+ art_uta_svp.c \
+ art_vpath.c \
+ art_vpath_bpath.c \
+ art_vpath_dash.c \
+ art_vpath_svp.c \
+
+LIBART_OBJECTS = $(LIBART_C_SRC:%.c=%.o)
+
+
+#
+# BUILD staticlibrary
+#
+
+# How to make a C file
+%.o: %.c
+ $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@
+
+.c.o:
+ $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@.o -c $<
+ $(CC) -shared $@.o $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $@
+
+libart_lgpl: \
+ libart_lgpl.a
+
+libart_lgpl.a: $(LIBART_OBJECTS)
+ -rm -f libart_lgpl.a
+ $(AR) cru libart_lgpl.a $(LIBART_OBJECTS)
+ ranlib libart_lgpl.a
+
+##
+## CLEAN RULES
+##
+
+clean:
+ rm -rf *.o
+ rm -rf *.a