######################################################## # Author: D Smethurst # Desc. : Makefile for the library # Version: v0.1 GCC = gcc LIBM = ar LIB = ../lib/libspr.a LIBOBJS = sprlst.o sprite.o INCLUDE = ../include COPTS = -O2 -DNDEBUG -I${INCLUDE} all: lib lib: ${LIBOBJS} ${LIBM} -r ${LIB} ${LIBOBJS} sprlst.o: sprlst.c ${INCLUDE}/sprite.h ${GCC} ${COPTS} -c sprlst.c -o sprlst.o sprite.o: sprite.c ${INCLUDE}/sprite.h ${GCC} ${COPTS} -c sprite.c -o sprite.o ######################################################## ########################################################