javascript: Stop using longjmp() and friends
[geany-mirror.git] / plugins / makefile.win32
blob28c2b697362e33945b657c6cde8cc952426025f2
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
9 ifdef MSYS
10 RM = rm -f
11 endif
13 .SUFFIXES: .c .o .dll
15 GTK_INCLUDES= \
16         -I$(PREFIX)/include/gtk-2.0 \
17         -I$(PREFIX)/lib/gtk-2.0/include \
18         -I$(PREFIX)/include/atk-1.0 \
19         -I$(PREFIX)/include/cairo \
20         -I$(PREFIX)/include/gdk-pixbuf-2.0 \
21         -I$(PREFIX)/include/pango-1.0 \
22         -I$(PREFIX)/include/glib-2.0 \
23         -I$(PREFIX)/lib/glib-2.0/include \
24         -I$(PREFIX)/include \
25         -I$(PREFIX)/include/gettext
27 INCLUDEDIRS=  -I.. \
28               -I../src \
29               -I../scintilla/include \
30               -I../tagmanager/src \
31               $(GTK_INCLUDES)
33 ALL_GTK_LIBS= \
34         -L"$(PREFIX)/lib" \
35         -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
36         -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
38 CBASEFLAGS=-Wall -pipe -mms-bitfields -DHAVE_CONFIG_H
39 ifdef DEBUG
40 CFLAGS=-O0 -g $(CBASEFLAGS)
41 else
42 CFLAGS=-O2 $(CBASEFLAGS)
43 endif
44 CFLAGS += -DGTK
46 ifndef GTK210
47 ALL_GTK_LIBS += -liconv
48 endif
50 .PHONY: all clean plugins
52 all: plugins
54 .c.o:
55         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) -o $@ -c $<
57 .o.dll:
58         $(CC) -shared $< $(ALL_GTK_LIBS) $(DLL_LD_FLAGS) -o $@
60 plugins: \
61                 htmlchars.dll \
62                 demoplugin.dll \
63                 classbuilder.dll \
64                 export.dll \
65                 saveactions.dll \
66                 splitwindow.dll \
67                 filebrowser.dll
70 clean:
71         -$(RM) deps.mak *.o *.dll
73 deps.mak:
74         $(CC) -MM $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) *.c >deps.mak
76 # Generate header dependencies with "make deps.mak"
77 include deps.mak
79 ..\localwin32.mk:
80         echo # Set local variables here >$@