global_win32_activity.mak 1.36 KB
Newer Older
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
#
# This is the global makefile for mingw compilation of activities
#

#
# PATHS
#

CANVAS_TOP :=		$(GCOMPRIS_TOP)/src/goocanvas/src

##
## VARIABLE DEFINITIONS
##

# Compiler Options

DEFINES =

.SUFFIXES:
.SUFFIXES: .c .a

##
## INCLUDE  MAKEFILES
##

include $(GCOMPRIS_TOP)/global_win32.mak

##
## INCLUDE PATHS
##

INCLUDE_PATHS +=	-I. \
			-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$(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$(LIBXML2_TOP)/include \
			-I$(GCOMPRIS_TOP) \
			-I$(GCOMPRIS_TOP)/src \
			-I$(CANVAS_TOP) \
			-I$(CAIRO_TOP)/include/cairo \
			-I$(PYTHON_TOP)/include \
			-I$(PYTHON_TOP)/include/pygtk-2.0 \
			-I$(PYTHON_TOP)/include/pycairo \
			-I$(SQLITE_TOP) \
			-I$(ICONV_TOP)/include \
			-I$(RSVG_TOP)/include/librsvg-2


##
## TARGET DEFINITIONS
##

.PHONY: all clean

# How to make a C file
%.o: %.c
	$(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@

64
all: libactivity
65 66 67 68 69 70 71

#
# BUILD Activity staticlibrary
#

ACTIVITY_OBJECTS = $(ACTIVITY_C_SRC:%.c=%.o)

72 73
libactivity: \
		libactivity.a
74

75 76
libactivity.a: $(ACTIVITY_OBJECTS)
	-rm -f libactivity.a
77 78 79 80 81 82 83 84 85
	$(AR) cru libactivity.a $(ACTIVITY_OBJECTS)
	$(RANLIB) libactivity.a

clean:
	rm -rf *.o
	rm -rf *.a

install: