2010-04-21 14:56:08 +00:00
|
|
|
PROG = oxframe
|
2010-05-22 22:13:57 +00:00
|
|
|
SRC = src/oxframe.c
|
2010-04-21 14:56:08 +00:00
|
|
|
|
|
|
|
PREFIX ?= /usr/local
|
2010-05-23 13:32:56 +00:00
|
|
|
BINDIR ?= ${DESTDIR}${PREFIX}/bin
|
|
|
|
MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1
|
2010-04-21 14:56:08 +00:00
|
|
|
|
2010-05-23 13:32:56 +00:00
|
|
|
CC ?= gcc
|
2010-04-21 14:56:08 +00:00
|
|
|
CFLAGS ?= -D_FILE_OFFSET_BITS=64
|
|
|
|
CFLAGS += -Wall -ffast-math -fsigned-char
|
2010-05-22 22:13:57 +00:00
|
|
|
CFLAGS += -I. -Isrc -Isrc/halloc
|
2010-04-21 14:56:08 +00:00
|
|
|
|
|
|
|
INSTALL = install
|
|
|
|
|
2010-06-28 14:17:23 +00:00
|
|
|
INCLUDEFLAGS ?= `pkg-config --cflags oggplay nestegg` `imlib2-config --cflags`
|
2010-05-23 13:32:56 +00:00
|
|
|
LINKFLAGS ?= -L${PREFIX}/lib
|
2010-04-23 18:47:26 +00:00
|
|
|
LINKFLAGS += `imlib2-config --libs`
|
2010-06-28 14:17:23 +00:00
|
|
|
LINKFLAGS += `pkg-config --libs oggplay nestegg`
|
|
|
|
LINKFLAGS += -lvpx
|
2010-04-21 14:56:08 +00:00
|
|
|
|
|
|
|
all: ${PROG}
|
|
|
|
|
|
|
|
|
2010-05-26 00:13:45 +00:00
|
|
|
${PROG}: ${SRC}
|
|
|
|
${CC} -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops ${CFLAGS} ${INCLUDEFLAGS} -o ${PROG} $< ${LINKFLAGS}
|
2010-04-21 14:56:08 +00:00
|
|
|
|
2010-05-23 13:32:56 +00:00
|
|
|
clean:
|
|
|
|
-@rm -f ${PROG} *~ core *.core src/*.o src/halloc/src/*.o
|
2010-04-21 14:56:08 +00:00
|
|
|
|
|
|
|
install: ${PROG}
|
|
|
|
${INSTALL} -c -m 555 -o root -g bin ${PROG} ${BINDIR}
|
2010-04-22 08:14:04 +00:00
|
|
|
${INSTALL} -c -m 555 -o root -g bin oxposterframe ${BINDIR}
|
2010-04-21 14:56:08 +00:00
|
|
|
|
2010-05-23 13:32:56 +00:00
|
|
|
uninstall:
|
|
|
|
@rm -f ${BINDIR}/${PROG} ${BINDIR}/oxposterframe
|
2010-04-21 14:56:08 +00:00
|
|
|
|
2010-05-23 13:32:56 +00:00
|
|
|
.PHONY: all install uninstall
|