Subversion Repositories AndroidProjects

Rev

Blame | Last modification | View Log | RSS feed

#
# For instalation. Change this to your settings.
#
INC_DIR = ../../../include
LIB_DIR = ../..
#
#  compiler
#
# Note we hard code in -O3 here because the Bayer decoder needs to be highly
# optimised otherwise it runs so slow you can't use it!
CC= cc
CFLAG= @CFLAG@ -I$(INC_DIR) -O3
#
# For making the library
#
AR= ar
ARFLAGS= @ARFLAG@
#
#   products
#
LIB= ${LIB_DIR}/libARvideo.a
INCLUDE=  ${INC_DIR}/AR/config.h \
          ${INC_DIR}/AR/video.h
#
#   compilation control
#
LIBOBJS= ${LIB}(video.o conversions.o)

all:            ${LIBOBJS}

${LIBOBJS}:     ${INCLUDE}

.c.a:
        ${CC} -c ${CFLAG} $<
        ${AR} ${ARFLAGS} $@ $*.o
        rm -f $*.o

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

allclean:
        rm -f *.o
        rm -f ${LIB}
        rm -f Makefile