2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .cxx .c .o .h .a
|
|
|
|
CC = gcc
|
|
|
|
AR = ar
|
|
|
|
RANLIB = ranlib
|
2011-04-03 16:38:31 +00:00
|
|
|
PREFIX = C:/libs
|
2006-07-28 12:29:10 +00:00
|
|
|
RM = del
|
2012-05-08 22:52:27 +02:00
|
|
|
-include ../../localwin32.mk
|
2006-07-28 12:29:10 +00:00
|
|
|
|
2012-07-04 17:13:14 +01:00
|
|
|
ifdef MSYS
|
|
|
|
RM = rm -f
|
|
|
|
endif
|
|
|
|
|
2006-07-28 12:29:10 +00:00
|
|
|
COMPLIB=tagmanager.a
|
|
|
|
|
2012-01-26 22:52:22 +01:00
|
|
|
REGEX_DEFINES = -DHAVE_REGCOMP -DSTDC_HEADERS=1
|
2007-11-17 19:27:50 +00:00
|
|
|
|
2006-07-28 12:29:10 +00:00
|
|
|
GTK_INCLUDES= \
|
|
|
|
-I$(PREFIX)/include/gtk-2.0 \
|
|
|
|
-I$(PREFIX)/lib/gtk-2.0/include \
|
|
|
|
-I$(PREFIX)/include/atk-1.0 \
|
|
|
|
-I$(PREFIX)/include/cairo \
|
2011-12-08 12:53:11 +00:00
|
|
|
-I$(PREFIX)/include/gdk-pixbuf-2.0 \
|
|
|
|
-I$(PREFIX)/include/pango-1.0 \
|
2006-07-28 12:29:10 +00:00
|
|
|
-I$(PREFIX)/include/glib-2.0 \
|
|
|
|
-I$(PREFIX)/lib/glib-2.0/include \
|
2011-12-08 12:53:11 +00:00
|
|
|
-I$(PREFIX)/include \
|
|
|
|
-I$(PREFIX)/include/gettext
|
2006-07-28 12:29:10 +00:00
|
|
|
|
2012-06-06 15:21:00 +01:00
|
|
|
INCLUDEDIRS=-I ../ctags -I ../ -I . $(GTK_INCLUDES)
|
2006-07-28 12:29:10 +00:00
|
|
|
|
2014-10-12 23:37:00 +02:00
|
|
|
CBASEFLAGS=-Wall -pipe -mms-bitfields -DGEANY_PRIVATE -DPACKAGE=\"geany\" -Wno-missing-braces -Wno-char-subscripts $(INCLUDEDIRS)
|
2008-04-15 15:11:05 +00:00
|
|
|
ifdef DEBUG
|
|
|
|
CFLAGS= -O0 -g $(CBASEFLAGS)
|
|
|
|
else
|
|
|
|
CFLAGS=-O2 $(CBASEFLAGS)
|
|
|
|
endif
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
.c.o:
|
2012-06-07 16:45:37 +01:00
|
|
|
$(CC) $(REGEX_DEFINES) $(CFLAGS) -c $<
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
all: $(COMPLIB)
|
|
|
|
|
|
|
|
clean:
|
2006-09-22 12:09:53 +00:00
|
|
|
-$(RM) deps.mak *.o $(COMPLIB)
|
2006-07-28 12:29:10 +00:00
|
|
|
|
2014-10-10 16:18:06 +02:00
|
|
|
$(COMPLIB): tm_workspace.o tm_source_file.o tm_tag.o \
|
2014-10-07 14:50:07 +01:00
|
|
|
tm_file_entry.o
|
2006-07-28 12:29:10 +00:00
|
|
|
$(AR) rc $@ $^
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
|
|
|
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
|