2010-04-21 14:56:08 +00:00
|
|
|
PROG = oxframe
|
2016-08-29 12:37:33 +00:00
|
|
|
SRC = src/oxframe.c src/nestegg.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
|
|
|
|
2011-10-08 14:07:54 +00:00
|
|
|
CC ?= gcc
|
2015-08-28 14:12:01 +00:00
|
|
|
CFLAGS ?= -Wall -Wno-parantheses -O3
|
2011-10-08 14:07:54 +00:00
|
|
|
FLAGS += -ffast-math -fsigned-char -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops
|
2015-08-28 14:12:01 +00:00
|
|
|
FLAGS = -DHAVE_VP9=1 ${CFLAGS}
|
2016-08-29 12:37:33 +00:00
|
|
|
FLAGS += -I. -Isrc
|
2010-04-21 14:56:08 +00:00
|
|
|
|
|
|
|
INSTALL = install
|
|
|
|
|
2023-06-07 22:24:50 +00:00
|
|
|
INCLUDEFLAGS ?= `pkg-config --cflags oggplay vpx imlib2`
|
2011-10-08 14:07:54 +00:00
|
|
|
LINKFLAGS += -L${PREFIX}/lib
|
2023-06-07 22:24:50 +00:00
|
|
|
LINKFLAGS += `pkg-config --libs oggplay vpx imlib2`
|
2011-10-08 14:07:54 +00:00
|
|
|
LINKFLAGS += ${LDFLAGS}
|
2012-02-21 09:53:25 +00:00
|
|
|
LINKFLAGS += -lm
|
2010-04-21 14:56:08 +00:00
|
|
|
|
|
|
|
all: ${PROG}
|
|
|
|
|
|
|
|
|
2010-05-26 00:13:45 +00:00
|
|
|
${PROG}: ${SRC}
|
2015-08-28 14:32:15 +00:00
|
|
|
${CC} -std=c99 ${FLAGS} ${INCLUDEFLAGS} -o ${PROG} ${SRC} ${LINKFLAGS}
|
2010-04-21 14:56:08 +00:00
|
|
|
|
2010-05-23 13:32:56 +00:00
|
|
|
clean:
|
2016-08-29 12:37:33 +00:00
|
|
|
-@rm -f ${PROG} *~ core *.core 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}
|
2012-08-12 17:01:28 +00:00
|
|
|
${INSTALL} -c -m 444 -o root -g bin man/oxframe.1 man/oxposterframe.1 ${MAN1DIR}
|
2010-04-21 14:56:08 +00:00
|
|
|
|
2010-05-23 13:32:56 +00:00
|
|
|
uninstall:
|
2012-08-12 17:01:28 +00:00
|
|
|
@rm -f ${BINDIR}/${PROG} ${BINDIR}/oxposterframe ${MAN1DIR}/oxframe.1 ${MAN1DIR}/oxposterframe.1
|
2010-04-21 14:56:08 +00:00
|
|
|
|
2010-05-23 13:32:56 +00:00
|
|
|
.PHONY: all install uninstall
|