2010-04-21 14:56:08 +00:00
|
|
|
PROG = oxframe
|
|
|
|
SRC = oxframe.c
|
|
|
|
|
|
|
|
PREFIX ?= /usr/local
|
|
|
|
BINDIR ?= ${PREFIX}/bin
|
|
|
|
MAN1DIR ?= ${PREFIX}/man/man1
|
|
|
|
|
|
|
|
CC ?= gcc
|
|
|
|
CFLAGS ?= -D_FILE_OFFSET_BITS=64
|
|
|
|
CFLAGS += -Wall -ffast-math -fsigned-char
|
|
|
|
|
|
|
|
INSTALL = install
|
|
|
|
|
|
|
|
INCLUDEFLAGS ?= `pkg-config --cflags oggplay` `imlib2-config --cflags`
|
|
|
|
LINKFLAGS ?= -L${PREFIX}/lib
|
|
|
|
#LINKFLAGS += `pkg-config --libs oggplay` `imlib2-config --libs`
|
|
|
|
LINKFLAGS += `imlib2-config --libs` -L/usr/local/lib /usr/local/lib/liboggplay.a -loggz -lfishsound -ltheora -lvorbisenc -lvorbis -lm -logg -lkate -lpthread
|
|
|
|
|
|
|
|
|
|
|
|
all: ${PROG}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${PROG}: ${SRC}
|
|
|
|
${CC} -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops ${CFLAGS} ${INCLUDEFLAGS} -o ${PROG} $< ${LINKFLAGS}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
clean:
|
|
|
|
-@rm -f ${PROG} *~ core *.core
|
|
|
|
|