#
# all our Makefiles are lovingly handcrafted by our semi-skilled technicians
#

SOURCE = logImageCore.c cineonlib.c dpxlib.c logImageLib.c
INCLUDE = cineonlib.h cineonfile.h dpxlib.h dpxfile.h logImageCore.h logImageLib.h

GIMPARGS = $(shell gimptool --cflags --libs)

all: cineon

cineon: cineon.c $(SOURCE) $(INCLUDE)
	cc -O2 -Wall -o cineon cineon.c $(SOURCE) $(GIMPARGS)
	gimptool --install-bin cineon

cineonTest: cineonTest.c $(SOURCE) $(INCLUDE)
	cc -O2 -g -o cineonTest cineonTest.c $(SOURCE) -lm

#compressTest: compressTest.c $(SOURCE) $(INCLUDE)
#	cc -O2 -g -o compressTest compressTest.c $(SOURCE) -lm

clean:
	rm cineon cineonTest *.o
