geany/tagmanager/src/makefile.win32
Colomban Wendling 9644fb0ae2 Define GEANY_{EXPORT,API}_SYMBOL from the build system
This makes it easier to define it consistently to what the compiler
and platform supports, and avoids having to include a special header
everywhere, which is some kind of a problem for separate libraries
like TagManager and especially Scintilla.

As we only use these macros from the source and not the headers, it
is fine for it to be defined to a configure-time check from the build
system.

Warning: Although Waf and Windows makefiles are updated they are not
         tested an will probably required tuning.
2015-04-10 16:08:08 +02:00

58 lines
1.2 KiB
Plaintext

.SUFFIXES: .cxx .c .o .h .a
CC = gcc
AR = ar
RANLIB = ranlib
PREFIX = C:/libs
RM = del
-include ../../localwin32.mk
ifdef MSYS
RM = rm -f
endif
COMPLIB=tagmanager.a
REGEX_DEFINES = -DHAVE_REGCOMP -DSTDC_HEADERS=1
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 \
-I$(PREFIX)/include/gdk-pixbuf-2.0 \
-I$(PREFIX)/include/pango-1.0 \
-I$(PREFIX)/include/glib-2.0 \
-I$(PREFIX)/lib/glib-2.0/include \
-I$(PREFIX)/include \
-I$(PREFIX)/include/gettext
INCLUDEDIRS=-I ../ctags -I ../ -I . $(GTK_INCLUDES)
CBASEFLAGS=-Wall -pipe -mms-bitfields -DGEANY_PRIVATE -DPACKAGE=\"geany\" -Wno-missing-braces -Wno-char-subscripts $(INCLUDEDIRS) \
-DGEANY_EXPORT_SYMBOL="__declspec(dllexport)" \
-DGEANY_API_SYMBOL=GEANY_EXPORT_SYMBOL
ifdef DEBUG
CFLAGS= -O0 -g $(CBASEFLAGS)
else
CFLAGS=-O2 $(CBASEFLAGS)
endif
.c.o:
$(CC) $(REGEX_DEFINES) $(CFLAGS) -c $<
all: $(COMPLIB)
clean:
-$(RM) deps.mak *.o $(COMPLIB)
$(COMPLIB): tm_workspace.o tm_source_file.o tm_tag.o
$(AR) rc $@ $^
$(RANLIB) $@
deps.mak:
$(CC) -MM $(CFLAGS) *.c >deps.mak
# Generate header dependencies with "make deps.mak"
include deps.mak