1 # Note: PACKAGE_DATA_DIR and PACKAGE_LOCALE_DIR are no longer used on Windows.
3 DEFINES = -DHAVE_CONFIG_H \
5 -DGEANY_DATADIR=\"data\" \
6 -DGEANY_LOCALEDIR=\"\" \
10 .SUFFIXES: .c .o .h .a
14 RES = ../geany_private.res
19 -include ../localwin32.mk
22 -I$(PREFIX)/include/gtk-2.0 \
23 -I$(PREFIX)/lib/gtk-2.0/include \
24 -I$(PREFIX)/include/atk-1.0 \
25 -I$(PREFIX)/include/pango-1.0 \
26 -I$(PREFIX)/include/cairo \
27 -I$(PREFIX)/include/glib-2.0 \
28 -I$(PREFIX)/lib/glib-2.0/include \
29 -I$(PREFIX)/include/gettext \
33 -I../scintilla/include \
34 -I../tagmanager/include \
39 -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
40 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
41 # these things are for GTK >= 2.8
42 # (should be same as with MSYS: pkg-config --libs gtk+-2.0 gthread-2.0)
43 #"$(PREFIX)/lib/libcairo.dll.a" \
44 #"$(PREFIX)/lib/asprintf.lib" \
45 #"$(PREFIX)/lib/charset.lib" \
48 ALL_GTK_LIBS +=-liconv
50 ALL_GTK_LIBS +=-lcairo -lpangocairo-1.0 -lgio-2.0
53 WIN_LIBS=-mwindows -lole32 -luuid -liberty -lwsock32
55 CBASEFLAGS=-Wall -pipe -mms-bitfields $(DEFINES) $(INCLUDEDIRS)
57 CFLAGS=-O0 -g $(CBASEFLAGS)
58 DEFINES += -DGEANY_DEBUG
60 CFLAGS=-O2 $(CBASEFLAGS)
63 OBJS = about.o build.o callbacks.o dialogs.o document.o editor.o encodings.o filetypes.o \
64 geanyentryaction.o geanymenubuttonaction.o geanyobject.o geanywraplabel.o highlighting.o \
65 interface.o keybindings.o keyfile.o \
66 log.o main.o msgwindow.o navqueue.o notebook.o plugins.o pluginutils.o \
67 prefs.o printing.o project.o \
68 sciwrappers.o search.o socket.o stash.o \
69 symbols.o templates.o toolbar.o tools.o sidebar.o \
70 ui_utils.o utils.o win32.o
75 # all: binclean $(TARGET) #exec
78 $(RES): ../geany_private.rc ../icons/geany.ico
79 $(WINDRES) -i $< --input-format=rc -o $@ -O coff
81 # this calls parent clean-local target because del ../file won't work
84 cd .. && $(MAKE) -f makefile.win32 clean-local && cd src
92 $(TARGET): $(OBJS) $(RES) ../scintilla/scintilla.a ../tagmanager/tagmanager.a
93 $(CXX) $(OBJS) $(RES) -o $(TARGET) \
94 ../scintilla/scintilla.a ../tagmanager/tagmanager.a $(ALL_GTK_LIBS) \
98 $(CC) -MM $(CFLAGS) *.c >deps.mak
100 # Generate header dependencies with "make deps.mak"
104 echo # Set local variables here >$@