2006-07-28 12:29:10 +00:00
|
|
|
# Note: PACKAGE_DATA_DIR and PACKAGE_LOCALE_DIR are no longer used on Windows.
|
|
|
|
|
2007-12-19 15:37:10 +00:00
|
|
|
DEFINES = -DHAVE_CONFIG_H \
|
2009-08-26 14:56:05 +00:00
|
|
|
-DGEANY_PRIVATE \
|
2007-12-19 15:37:10 +00:00
|
|
|
-DGEANY_DATADIR=\"data\" \
|
2009-06-08 18:05:34 +00:00
|
|
|
-DGEANY_LOCALEDIR=\"\" \
|
2007-12-19 15:37:10 +00:00
|
|
|
-DGEANY_LIBDIR=\"\" \
|
2010-05-16 17:44:40 +00:00
|
|
|
-DGEANY_PREFIX=\"\" \
|
|
|
|
-DGTK
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o .h .a
|
|
|
|
WINDRES = windres.exe
|
|
|
|
CC = gcc
|
|
|
|
CXX = g++
|
|
|
|
RES = ../geany_private.res
|
|
|
|
TARGET = ../geany.exe
|
|
|
|
EXECDIR = c:\distrib
|
|
|
|
PREFIX = C:\libs
|
|
|
|
RM = del
|
|
|
|
-include ../localwin32.mk
|
|
|
|
|
|
|
|
GTK_INCLUDES= \
|
|
|
|
-I$(PREFIX)/include/gtk-2.0 \
|
|
|
|
-I$(PREFIX)/lib/gtk-2.0/include \
|
|
|
|
-I$(PREFIX)/include/atk-1.0 \
|
|
|
|
-I$(PREFIX)/include/pango-1.0 \
|
|
|
|
-I$(PREFIX)/include/cairo \
|
|
|
|
-I$(PREFIX)/include/glib-2.0 \
|
|
|
|
-I$(PREFIX)/lib/glib-2.0/include \
|
|
|
|
-I$(PREFIX)/include/gettext \
|
|
|
|
-I$(PREFIX)/include
|
|
|
|
|
|
|
|
INCLUDEDIRS= -I.. \
|
|
|
|
-I../scintilla/include \
|
2011-03-05 22:40:50 +00:00
|
|
|
-I../tagmanager/mio \
|
2006-07-28 12:29:10 +00:00
|
|
|
-I../tagmanager/include \
|
|
|
|
$(GTK_INCLUDES)
|
|
|
|
|
|
|
|
ALL_GTK_LIBS= \
|
|
|
|
-L"$(PREFIX)/lib" \
|
|
|
|
-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
|
2011-03-27 15:04:58 +00:00
|
|
|
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lgthread-2.0 -lintl
|
2006-07-28 12:29:10 +00:00
|
|
|
# these things are for GTK >= 2.8
|
|
|
|
# (should be same as with MSYS: pkg-config --libs gtk+-2.0 gthread-2.0)
|
|
|
|
#"$(PREFIX)/lib/libcairo.dll.a" \
|
|
|
|
#"$(PREFIX)/lib/asprintf.lib" \
|
|
|
|
#"$(PREFIX)/lib/charset.lib" \
|
|
|
|
|
2008-08-13 18:38:40 +00:00
|
|
|
ifdef GTK280
|
2008-06-09 19:29:54 +00:00
|
|
|
ALL_GTK_LIBS +=-liconv
|
2008-08-13 18:38:40 +00:00
|
|
|
else
|
2009-01-14 18:38:31 +00:00
|
|
|
ALL_GTK_LIBS +=-lcairo -lpangocairo-1.0 -lgio-2.0
|
2007-11-17 14:04:27 +00:00
|
|
|
endif
|
2008-12-11 17:49:27 +00:00
|
|
|
|
2009-06-07 15:51:30 +00:00
|
|
|
WIN_LIBS=-mwindows -lole32 -luuid -liberty -lwsock32
|
2008-01-02 19:27:36 +00:00
|
|
|
|
2008-04-15 15:11:05 +00:00
|
|
|
CBASEFLAGS=-Wall -pipe -mms-bitfields $(DEFINES) $(INCLUDEDIRS)
|
|
|
|
ifdef DEBUG
|
|
|
|
CFLAGS=-O0 -g $(CBASEFLAGS)
|
2008-06-09 19:29:54 +00:00
|
|
|
DEFINES += -DGEANY_DEBUG
|
2008-04-15 15:11:05 +00:00
|
|
|
else
|
|
|
|
CFLAGS=-O2 $(CBASEFLAGS)
|
|
|
|
endif
|
2006-07-28 12:29:10 +00:00
|
|
|
|
2007-09-03 18:19:27 +00:00
|
|
|
OBJS = about.o build.o callbacks.o dialogs.o document.o editor.o encodings.o filetypes.o \
|
2008-12-11 17:46:13 +00:00
|
|
|
geanyentryaction.o geanymenubuttonaction.o geanyobject.o geanywraplabel.o highlighting.o \
|
2008-12-06 11:10:06 +00:00
|
|
|
interface.o keybindings.o keyfile.o \
|
2009-07-28 11:35:33 +00:00
|
|
|
log.o main.o msgwindow.o navqueue.o notebook.o plugins.o pluginutils.o \
|
|
|
|
prefs.o printing.o project.o \
|
2009-09-17 17:38:53 +00:00
|
|
|
sciwrappers.o search.o socket.o stash.o \
|
2009-09-28 11:16:59 +00:00
|
|
|
symbols.o templates.o toolbar.o tools.o sidebar.o \
|
2008-01-09 13:24:36 +00:00
|
|
|
ui_utils.o utils.o win32.o
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
.c.o:
|
2008-04-15 15:11:05 +00:00
|
|
|
$(CC) $(CFLAGS) -c $<
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
# all: binclean $(TARGET) #exec
|
|
|
|
all: $(TARGET)
|
|
|
|
|
2009-05-26 20:45:36 +00:00
|
|
|
$(RES): ../geany_private.rc ../icons/geany.ico
|
2006-07-28 12:29:10 +00:00
|
|
|
$(WINDRES) -i $< --input-format=rc -o $@ -O coff
|
|
|
|
|
|
|
|
# this calls parent clean-local target because del ../file won't work
|
|
|
|
clean:
|
2006-09-22 12:09:53 +00:00
|
|
|
-$(RM) deps.mak *.o
|
2008-04-08 15:10:05 +00:00
|
|
|
cd .. && $(MAKE) -f makefile.win32 clean-local && cd src
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
exec:
|
|
|
|
$(EXECDIR)\geany.exe
|
|
|
|
|
|
|
|
binclean:
|
|
|
|
$(RM) $(TARGET)
|
|
|
|
|
2011-03-06 13:10:48 +00:00
|
|
|
$(TARGET): $(OBJS) $(RES) ../scintilla/scintilla.a ../tagmanager/mio/mio.a ../tagmanager/tagmanager.a
|
2006-07-28 12:29:10 +00:00
|
|
|
$(CXX) $(OBJS) $(RES) -o $(TARGET) \
|
2011-03-06 13:10:48 +00:00
|
|
|
../scintilla/scintilla.a ../tagmanager/tagmanager.a ../tagmanager/mio/mio.a \
|
2011-03-05 22:40:50 +00:00
|
|
|
$(ALL_GTK_LIBS) $(WIN_LIBS)
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
deps.mak:
|
2008-04-15 15:11:05 +00:00
|
|
|
$(CC) -MM $(CFLAGS) *.c >deps.mak
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
# Generate header dependencies with "make deps.mak"
|
|
|
|
include deps.mak
|
|
|
|
|
|
|
|
..\localwin32.mk:
|
|
|
|
echo # Set local variables here >$@
|