summaryrefslogtreecommitdiff
path: root/saedit/Makefile
blob: 207eeaf2a5d7164ca5f022c82b9eae60871ed1d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CC ?= gcc

CFLAGS += `pkg-config --cflags gtk+-3.0 gtksourceview-3.0`
CFLAGS += -fPIC -Itreefolderview -Ispritedrawingarea
CFLAGS += -Wall -Wdeclaration-after-statement -ansi
CFLAGS += -Werror -Wextra -Wstrict-prototypes
CFLAGS += -Wno-unused-parameter

LDFLAGS += `pkg-config --libs gtk+-3.0 gtksourceview-3.0`
LDFLAGS += -rdynamic -Ltreefolderview -Lspritedrawingarea

FLAGS = ${CFLAGS} ${LDFLAGS}

all: saedit glade/libsaedit.so

saedit: main.o treefolderview/treefolderview.o xml.o  \
	spritedrawingarea/spritedrawingarea.o \
	context.o imageset.o action.o animation.o common.o \
	interactor.o callbacks.o errors.o config.o file.o \
	buffer.o spritedrawingarea/sdalayer.o xmlsetup.o \
	drawfuncs.o
	${CC} $^ -o saedit ${FLAGS}

glade/libsaedit.so: treefolderview/treefolderview.o \
	spritedrawingarea/spritedrawingarea.o \
	spritedrawingarea/sdalayer.o
	${CC} $^ -o glade/libsaedit.so ${FLAGS} -shared

%.o: %.c
	${CC} $^ -c -o $@ ${CFLAGS}

clean:
	rm -f *.o */*.o *~ glade/libsaedit.so saedit