d3fbf06e3f0bd456bdbcf6415c3c23df64a66230
[projects/chimara/chimara.git] / src / Makefile
1 PKG_CONFIG = gtk+-2.0 gthread-2.0
2 SOURCES = main.c \
3                   callbacks.c callbacks.h \
4                   error.c error.h \
5                   stream.c stream.h \
6                   window.c window.h \
7                   glk.c glk.h \
8                   gestalt.c \
9                   fileref.c fileref.h \
10                   case.c \
11                   strio.c \
12                   event.c event.h \
13                   input.c input.h \
14                   style.c \
15                   abort.c abort.h \
16                   first.c
17 OBJECTS = main.o \
18                   callbacks.o \
19                   error.o \
20                   stream.o \
21                   window.o \
22                   glk.o \
23                   gestalt.o \
24                   fileref.o \
25                   case.o \
26                   strio.o \
27                   event.o \
28                   input.o \
29                   style.o \
30                   abort.o \
31                   first.o
32
33 CFLAGS = -g -Wall -O0 -export-dynamic `pkg-config --cflags ${PKG_CONFIG}`
34 LIBS = -export-dynamic `pkg-config --libs ${PKG_CONFIG}`
35
36 all: gargoyle-gtk gargoyle-gtk.ui
37
38 gargoyle-gtk: ${OBJECTS}
39         ${CC} ${LIBS} -o gargoyle-gtk ${OBJECTS}
40
41 gargoyle-gtk.ui: gargoyle-gtk.glade
42         gtk-builder-convert gargoyle-gtk.glade gargoyle-gtk.ui
43         
44 clean:
45         ${RM} -f ${OBJECTS} gargoyle-gtk gargoyle-gtk.ui