all: test
DEFINE=
CC=lsbcc
CFLAGS= `pkg-config --cflags gtk+-2.0` $(DEFINE)
LIBS= `pkg-config --libs gtk+-2.0`
##test
test: test.o
		$(CC) $(LIBS) -o test test.o
test.o: test.c image.h
		$(CC) -c $(CFLAGS) -o test.o test.c
		
static: test_static
##test_static
test_static: test_static.o test_static1.o
		$(CC) $(LIBS) -o test_static test_static.o test_static1.o

test_static.o: test_static.c
		$(CC) -c $(CFLAGS) -o test_static.o test_static.c

test_static1.o: test_static1.c image.h
		$(CC) -c $(CFLAGS) -o test_static1.o test_static1.c

##test_const
test_const: test_const.o
		$(CC) $(LIBS) -o test_const test_const.o
test_const.o: test_const.c
		$(CC) -c $(CFLAGS) -o test_const.o test_const.c
##test_ctype
test_ctype: test_ctype.o
		$(CC) $(LIBS) -o test_ctype test_ctype.o
test_ctype.o: test_ctype.c
		$(CC) -c $(CFLAGS) -o test_ctype.o test_ctype.c
##test_decoder
test_decoder: test_decoder.o
		$(CC) $(LIBS) -o test_decoder test_decoder.o
test_decoder.o: test_decoder.c image.h
		$(CC) -c $(CFLAGS) -o test_decoder.o test_decoder.c
##clean
clean: clean_test clean_static clean_decoder clean_const clean_ctype

clean_test:
		rm -f test test.o

clean_static:
		rm -f test_static test_static.o test_static1.o test_static2.o
clean_decoder:
		rm -f test_decoder test_decoder.o
clean_const:
		rm -f test_const test_const.o
clean_ctype:
		rm -f test_ctype test_ctype.o
.PHONY: all clean clean_static clean_test clean_decoder clean_const clean_ctype