Makefile 433 Bytes
Newer Older
1
CC=gcc
Cedric Roux's avatar
Cedric Roux committed
2
CFLAGS=-Wall -g -pthread -I/usr/include/X11/Xft -I/usr/include/freetype2
3 4

OBJS=init.o loop.o toplevel_window.o x.o container.o widget.o \
Cedric Roux's avatar
Cedric Roux committed
5 6
     gui.o label.o textarea.o event.o xy_plot.o textlist.o notify.o \
     positioner.o timeline.o space.o image.o
7 8 9 10 11 12 13 14 15 16 17 18

gui.a: $(OBJS)
	ar cr gui.a $(OBJS)

test: test.o gui.a
	$(CC) -o test $(OBJS) test.o -lX11 -pthread -lm

%.o: %.c
	$(CC) $(CFLAGS) -o $@ -c $<

clean:
	rm -f *.a *.o test