Support {ob} and {cb} wildcards for snippets too (fixes #2937008).
[geany-mirror.git] / src / makefile.win32
blob344647d5a5d06f7fb117ca947ed5e38905990184
1 # Note: PACKAGE_DATA_DIR and PACKAGE_LOCALE_DIR are no longer used on Windows.
3 DEFINES = -DHAVE_CONFIG_H \
4         -DGEANY_PRIVATE \
5         -DGEANY_DATADIR=\"data\" \
6         -DGEANY_LOCALEDIR=\"\" \
7         -DGEANY_LIBDIR=\"\" \
8         -DGEANY_PREFIX=\"\"
10 .SUFFIXES: .c .o .h .a
11 WINDRES = windres.exe
12 CC = gcc
13 CXX = g++
14 RES  = ../geany_private.res
15 TARGET = ../geany.exe
16 EXECDIR = c:\distrib
17 PREFIX = C:\libs
18 RM = del
19 -include ../localwin32.mk
21 GTK_INCLUDES= \
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 \
30         -I$(PREFIX)/include
32 INCLUDEDIRS=  -I.. \
33               -I../scintilla/include \
34               -I../tagmanager/include \
35               $(GTK_INCLUDES)
37 ALL_GTK_LIBS= \
38         -L"$(PREFIX)/lib" \
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" \
47 ifdef GTK280
48 ALL_GTK_LIBS +=-liconv
49 else
50 ALL_GTK_LIBS +=-lcairo -lpangocairo-1.0 -lgio-2.0
51 endif
53 WIN_LIBS=-mwindows -lole32 -luuid -liberty -lwsock32
55 CBASEFLAGS=-Wall -pipe -mms-bitfields $(DEFINES) $(INCLUDEDIRS)
56 ifdef DEBUG
57 CFLAGS=-O0 -g $(CBASEFLAGS)
58 DEFINES += -DGEANY_DEBUG
59 else
60 CFLAGS=-O2 $(CBASEFLAGS)
61 endif
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
72 .c.o:
73         $(CC) $(CFLAGS) -c $<
75 # all: binclean $(TARGET) #exec
76 all: $(TARGET)
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
82 clean:
83         -$(RM) deps.mak *.o
84         cd .. && $(MAKE) -f makefile.win32 clean-local && cd src
86 exec:
87         $(EXECDIR)\geany.exe
89 binclean:
90         $(RM) $(TARGET)
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) \
95          $(WIN_LIBS)
97 deps.mak:
98         $(CC) -MM  $(CFLAGS) *.c >deps.mak
100 # Generate header dependencies with "make deps.mak"
101 include deps.mak
103 ..\localwin32.mk:
104         echo # Set local variables here >$@