Add a static global variable to monitor autocompletion mode in order to prevent cance...
[geany-mirror/kugel-geany.git] / plugins / makefile.win32
blob50cbdc31f1dcce1ebcc7266ac83f45ede9bb0d19
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
40 ifndef GTK210
41 ALL_GTK_LIBS += -liconv
42 endif
44 .PHONY: all clean plugins
46 all: plugins
48 .c.dll:
49         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) -o $@.o -c $<
50         $(CC) -shared $@.o $(ALL_GTK_LIBS) $(DLL_LD_FLAGS) -o $@
52 plugins: \
53                 htmlchars.dll \
54                 demoplugin.dll \
55                 classbuilder.dll \
56                 export.dll \
57                 saveactions.dll \
58                 filebrowser.dll
60 # Split Window is broken on Windows
61 #               splitwindow.dll
63 clean:
64         -$(RM) deps.mak *.o *.dll
66 deps.mak:
67         $(CC) -MM $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) *.c >deps.mak
69 # Generate header dependencies with "make deps.mak"
70 include deps.mak
72 ..\localwin32.mk:
73         echo # Set local variables here >$@