1 # Running make creates config.h then calls the sub makefiles.
\r
4 # deps: delete the dependencies so they are regenerated on next make
\r
5 # clean: clean all generated files
\r
7 # localwin32.mk is an optional file to override make variables.
\r
8 # Use localwin32.mk instead of editing variables as it is included in sub
\r
10 # localwin32.mk to set PREFIX instead of the default C:\libs
\r
11 # For MSYS use localwin32.mk to set CP and RM.
\r
12 # By default this will work in a Windows command prompt.
\r
18 GEANY_SRC = ../geany
\r
19 TARGET = geanyvc.dll
\r
21 -include localwin32.mk
\r
23 OBJS = geanyvc.o vc_cvs.o vc_svk.o vc_svn.o vc_git.o vc_bzr.o vc_hg.o
\r
24 INCLUDEDIRS= -I. -I.. \
\r
26 -I$(GEANY_SRC)/src \
\r
27 -I$(GEANY_SRC)/plugins \
\r
28 -I$(GEANY_SRC)/tagmanager/include \
\r
29 -I$(GEANY_SRC)/scintilla/include \
\r
30 -I$(PREFIX)/include/gtk-2.0 \
\r
31 -I$(PREFIX)/lib/gtk-2.0/include \
\r
32 -I$(PREFIX)/include/atk-1.0 \
\r
33 -I$(PREFIX)/include/pango-1.0 \
\r
34 -I$(PREFIX)/include/cairo \
\r
35 -I$(PREFIX)/include/glib-2.0 \
\r
36 -I$(PREFIX)/lib/glib-2.0/include \
\r
37 -I$(PREFIX)/include/gettext \
\r
41 -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
\r
42 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv
\r
43 CCFLAGS=-Wall -O2 -mms-bitfields -DHAVE_CONFIG_H
\r
49 $(CC) -MM $(CCFLAGS) $(INCLUDEDIRS) *.c >deps.mak
\r
52 $(CC) $(CCFLAGS) $(INCLUDEDIRS) -c $<
\r
54 $(TARGET): $(OBJS) deps.mak
\r
55 $(CC) -shared $(OBJS) $(ALL_GTK_LIBS) -o $(TARGET)
\r
58 -$(RM) deps.mak *.o *.dll
\r
60 # Generate header dependencies with "make deps.mak"
\r