2011-03-05 22:40:50 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .cxx .c .o .h .a
|
|
|
|
CC = gcc
|
|
|
|
AR = ar
|
|
|
|
RANLIB = ranlib
|
2012-05-08 22:52:27 +02:00
|
|
|
PREFIX = C:/libs
|
2011-03-05 22:40:50 +00:00
|
|
|
RM = del
|
|
|
|
-include ../../localwin32.mk
|
|
|
|
|
|
|
|
COMPLIB=mio.a
|
|
|
|
|
|
|
|
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 \
|
2011-03-05 22:40:50 +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
|
2011-03-05 22:40:50 +00:00
|
|
|
|
|
|
|
INCLUDEDIRS=-I include $(GTK_INCLUDES)
|
|
|
|
|
2012-06-04 13:30:55 +01:00
|
|
|
CBASEFLAGS=-Wall -pipe -mms-bitfields -DPACKAGE=\"geany\" -Wno-missing-braces -Wno-char-subscripts $(INCLUDEDIRS)
|
2011-03-05 22:40:50 +00:00
|
|
|
ifdef DEBUG
|
|
|
|
CFLAGS= -O0 -g $(CBASEFLAGS)
|
|
|
|
else
|
|
|
|
CFLAGS=-O2 $(CBASEFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
.c.o:
|
2012-06-04 13:30:55 +01:00
|
|
|
$(CC) $(CFLAGS) -c $<
|
2011-03-05 22:40:50 +00:00
|
|
|
|
|
|
|
all: $(COMPLIB)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-$(RM) deps.mak *.o $(COMPLIB)
|
|
|
|
|
|
|
|
$(COMPLIB): mio.o
|
|
|
|
$(AR) rc $@ $^
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
|
|
|
deps.mak:
|
|
|
|
$(CC) -MM $(CFLAGS) *.c >deps.mak
|
|
|
|
|
|
|
|
# Generate header dependencies with "make deps.mak"
|
|
|
|
include deps.mak
|