PROG = oxframe SRC = src/oxframe.c PREFIX ?= /usr/local BINDIR ?= ${DESTDIR}${PREFIX}/bin MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1 CC ?= gcc CFLAGS += -Wall -ffast-math -fsigned-char CFLAGS += -I. -Isrc -Isrc/halloc INSTALL = install INCLUDEFLAGS ?= `pkg-config --cflags oggplay nestegg` `imlib2-config --cflags` LINKFLAGS ?= -L${PREFIX}/lib LINKFLAGS += `imlib2-config --libs` LINKFLAGS += `pkg-config --libs oggplay nestegg vpx` all: ${PROG} ${PROG}: ${SRC} ${CC} -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops ${CFLAGS} ${INCLUDEFLAGS} -o ${PROG} $< ${LINKFLAGS} clean: -@rm -f ${PROG} *~ core *.core src/*.o src/halloc/src/*.o install: ${PROG} ${INSTALL} -c -m 555 -o root -g bin ${PROG} ${BINDIR} ${INSTALL} -c -m 555 -o root -g bin oxposterframe ${BINDIR} uninstall: @rm -f ${BINDIR}/${PROG} ${BINDIR}/oxposterframe .PHONY: all install uninstall