Update Ignore Tags section with example and menu item.
[geany-mirror.git] / plugins / makefile.win32
blobe66a5722c27aa4b4549d0bd6efa17cd7d90247c1
1 # Adapted from Pidgin's plugins/Makefile.am, thanks
3 CC = gcc
4 CXX = g++
5 PREFIX = C:\libs
6 RM = del
7 -include ../localwin32.mk
8 .SUFFIXES:
9 .SUFFIXES: .c .dll
11 GTK_INCLUDES= \
12         -I$(PREFIX)/include/gtk-2.0 \
13         -I$(PREFIX)/lib/gtk-2.0/include \
14         -I$(PREFIX)/include/atk-1.0 \
15         -I$(PREFIX)/include/pango-1.0 \
16         -I$(PREFIX)/include/cairo \
17         -I$(PREFIX)/include/glib-2.0 \
18         -I$(PREFIX)/lib/glib-2.0/include \
19         -I$(PREFIX)/include/gettext \
20         -I$(PREFIX)/include
22 INCLUDEDIRS=  -I.. \
23               -I../src \
24               -I../scintilla/include \
25               -I../tagmanager/include \
26               $(GTK_INCLUDES)
28 ALL_GTK_LIBS= \
29         -L"$(PREFIX)/lib" \
30         -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
31         -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
33 CBASEFLAGS=-Wall -pipe -mms-bitfields -DHAVE_CONFIG_H
34 ifdef DEBUG
35 CFLAGS=-O0 -g $(CBASEFLAGS)
36 else
37 CFLAGS=-O2 $(CBASEFLAGS)
38 endif
39 CFLAGS += -DGTK
41 ifndef GTK210
42 ALL_GTK_LIBS += -liconv
43 endif
45 .PHONY: all clean plugins
47 all: plugins
49 .c.dll:
50         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) -o $@.o -c $<
51         $(CC) -shared $@.o $(ALL_GTK_LIBS) $(DLL_LD_FLAGS) -o $@
53 plugins: \
54                 htmlchars.dll \
55                 demoplugin.dll \
56                 classbuilder.dll \
57                 export.dll \
58                 saveactions.dll \
59                 filebrowser.dll
61 # Split Window is broken on Windows
62 #               splitwindow.dll
64 clean:
65         -$(RM) deps.mak *.o *.dll
67 deps.mak:
68         $(CC) -MM $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) *.c >deps.mak
70 # Generate header dependencies with "make deps.mak"
71 include deps.mak
73 ..\localwin32.mk:
74         echo # Set local variables here >$@