2007-07-28 17:44:02 +00:00
|
|
|
# Adapted from Pidgin's plugins/Makefile.am, thanks
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
CXX = g++
|
|
|
|
PREFIX = C:\libs
|
|
|
|
RM = del
|
|
|
|
-include ../localwin32.mk
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .c .dll
|
|
|
|
|
|
|
|
GTK_INCLUDES= \
|
|
|
|
-I$(PREFIX)/include/gtk-2.0 \
|
|
|
|
-I$(PREFIX)/lib/gtk-2.0/include \
|
|
|
|
-I$(PREFIX)/include/atk-1.0 \
|
|
|
|
-I$(PREFIX)/include/pango-1.0 \
|
|
|
|
-I$(PREFIX)/include/cairo \
|
|
|
|
-I$(PREFIX)/include/glib-2.0 \
|
|
|
|
-I$(PREFIX)/lib/glib-2.0/include \
|
|
|
|
-I$(PREFIX)/include/gettext \
|
|
|
|
-I$(PREFIX)/include
|
|
|
|
|
|
|
|
INCLUDEDIRS= -I.. \
|
|
|
|
-I../src \
|
|
|
|
-I../scintilla/include \
|
|
|
|
-I../tagmanager/include \
|
|
|
|
$(GTK_INCLUDES)
|
|
|
|
|
|
|
|
ALL_GTK_LIBS= \
|
|
|
|
-L"$(PREFIX)/lib" \
|
|
|
|
-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
|
2008-06-09 19:29:54 +00:00
|
|
|
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
|
2007-07-28 17:44:02 +00:00
|
|
|
|
2008-04-15 15:11:05 +00:00
|
|
|
CBASEFLAGS=-Wall -pipe -mms-bitfields -DHAVE_CONFIG_H
|
|
|
|
ifdef DEBUG
|
|
|
|
CFLAGS=-O0 -g $(CBASEFLAGS)
|
|
|
|
else
|
|
|
|
CFLAGS=-O2 $(CBASEFLAGS)
|
|
|
|
endif
|
2010-05-16 17:44:40 +00:00
|
|
|
CFLAGS += -DGTK
|
2008-04-15 15:11:05 +00:00
|
|
|
|
2008-06-09 19:29:54 +00:00
|
|
|
ifndef GTK210
|
|
|
|
ALL_GTK_LIBS += -liconv
|
|
|
|
endif
|
2007-07-28 17:44:02 +00:00
|
|
|
|
|
|
|
.PHONY: all clean plugins
|
|
|
|
|
|
|
|
all: plugins
|
|
|
|
|
|
|
|
.c.dll:
|
2008-04-15 15:11:05 +00:00
|
|
|
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) -o $@.o -c $<
|
2007-07-28 17:44:02 +00:00
|
|
|
$(CC) -shared $@.o $(ALL_GTK_LIBS) $(DLL_LD_FLAGS) -o $@
|
|
|
|
|
|
|
|
plugins: \
|
|
|
|
htmlchars.dll \
|
|
|
|
demoplugin.dll \
|
2007-08-19 17:40:19 +00:00
|
|
|
classbuilder.dll \
|
2007-10-15 08:53:26 +00:00
|
|
|
export.dll \
|
2008-10-02 13:37:35 +00:00
|
|
|
saveactions.dll \
|
2011-05-09 13:22:02 +00:00
|
|
|
splitwindow.dll \
|
2007-10-22 12:42:19 +00:00
|
|
|
filebrowser.dll
|
2007-07-28 17:44:02 +00:00
|
|
|
|
2009-02-16 13:18:20 +00:00
|
|
|
|
2007-07-28 17:44:02 +00:00
|
|
|
clean:
|
|
|
|
-$(RM) deps.mak *.o *.dll
|
|
|
|
|
|
|
|
deps.mak:
|
2008-04-15 15:11:05 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) *.c >deps.mak
|
2007-07-28 17:44:02 +00:00
|
|
|
|
|
|
|
# Generate header dependencies with "make deps.mak"
|
|
|
|
include deps.mak
|
|
|
|
|
|
|
|
..\localwin32.mk:
|
|
|
|
echo # Set local variables here >$@
|