# This is the Makefile for Aglaia

APPNAME = aglaia
OBJS = main.o my_profiler.o basic_control.o init_exit.o buffer_work.o jpg_capture.o
SDLLIBS = -lSDL
IEEE1394LIBS = -lraw1394 -ldc1394_control
LIBS = ${SDLLIBS} ${IEEE1394LIBS} -ljpeg
CFLAGS = -Wall -g -O2

all: ${APPNAME}

${APPNAME}: ${OBJS} Makefile
	${CC} ${CFLAGS} -o ${APPNAME} ${OBJS} ${LIBS}

${OBJS}: somedefs.h my_profiler.h

clean:
	rm -f *.o ${APPNAME}

install: all
	@echo automatic installation is currently not supported
	@echo use something like cp ./${APPNAME} /usr/bin instead
	@false
