# Makefile for drawtool

CC = gcc -Wall -O6 -g

SRCS = drawtool.c plot.c events.c cmdline.c getopt.c coloursel.c \
       buttons.c parse.c widgets.c macromenu.c macros.c \
       rcfile.c
OBJS = $(SRCS:.c=.o)
LIBS = -lgdk_imlib

all: drawtool

.c.o:
	$(CC) `gtk-config --cflags` -c $*.c -o $*.o

drawtool: $(OBJS)
	$(CC) $(LIBS) `gtk-config --libs` $(OBJS)  -o $@

clean: 
	rm -f *~ *.o drawtool
