2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .cxx .c .o .h .a
|
|
|
|
CC = gcc
|
|
|
|
AR = ar
|
|
|
|
RANLIB = ranlib
|
|
|
|
PREFIX = C:\libs
|
|
|
|
RM = del
|
|
|
|
-include ../localwin32.mk
|
|
|
|
|
|
|
|
COMPLIB=tagmanager.a
|
|
|
|
|
2007-11-17 19:27:50 +00:00
|
|
|
REGEX_DEFINES = -DHAVE_REGCOMP -DREGEX_MALLOC -DSTDC_HEADERS=1
|
|
|
|
|
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/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 include $(GTK_INCLUDES)
|
|
|
|
|
2008-04-15 15:11:05 +00:00
|
|
|
CBASEFLAGS=-Wall -pipe -mms-bitfields -DPACKAGE=\"geany\" -DG_OS_WIN32 -Wno-missing-braces -Wno-char-subscripts $(INCLUDEDIRS)
|
|
|
|
ifdef DEBUG
|
|
|
|
CFLAGS= -O0 -g $(CBASEFLAGS)
|
|
|
|
else
|
|
|
|
CFLAGS=-O2 $(CBASEFLAGS)
|
|
|
|
endif
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
.c.o:
|
2008-04-15 15:11:05 +00:00
|
|
|
$(CC) $(REGEX_DEFINES) $(CFLAGS) -w -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
|
|
|
|
2009-12-07 17:51:37 +00:00
|
|
|
$(COMPLIB): abc.o args.o c.o fortran.o make.o conf.o pascal.o perl.o php.o diff.o vhdl.o verilog.o lua.o js.o \
|
2009-04-21 20:52:19 +00:00
|
|
|
actionscript.o nsis.o \
|
2009-05-11 14:15:00 +00:00
|
|
|
haskell.o haxe.o html.o python.o lregex.o rest.o sh.o ctags.o entry.o get.o keyword.o nestlevel.o \
|
|
|
|
options.o \
|
2009-11-04 18:32:52 +00:00
|
|
|
parse.o basic.o read.o sort.o strlist.o latex.o markdown.o matlab.o docbook.o tcl.o ruby.o asm.o sql.o txt2tags.o css.o \
|
2008-03-09 18:50:41 +00:00
|
|
|
vstring.o regex.o tm_workspace.o tm_work_object.o tm_source_file.o tm_project.o tm_tag.o \
|
|
|
|
tm_symbol.o tm_file_entry.o tm_tagmanager.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
|