add nestegg since it does not look like it gets released or shipped as an lib any time soon
This commit is contained in:
parent
00e6716577
commit
d6d5498ae7
10 changed files with 2826 additions and 19 deletions
10
Makefile
10
Makefile
|
|
@ -1,26 +1,26 @@
|
|||
PROG = oxframe
|
||||
SRC = src/oxframe.c
|
||||
SRC = src/oxframe.c src/nestegg.c src/halloc/halloc.c
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR ?= ${DESTDIR}${PREFIX}/bin
|
||||
MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1
|
||||
|
||||
CC ?= gcc
|
||||
CFLAGS += -Wall -ffast-math -fsigned-char
|
||||
CFLAGS += -Wall -ffast-math -fsigned-char -Wno-parantheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops
|
||||
CFLAGS += -I. -Isrc -Isrc/halloc
|
||||
|
||||
INSTALL = install
|
||||
|
||||
INCLUDEFLAGS ?= `pkg-config --cflags oggplay nestegg` `imlib2-config --cflags`
|
||||
INCLUDEFLAGS ?= `pkg-config --cflags oggplay` `imlib2-config --cflags`
|
||||
LINKFLAGS ?= -L${PREFIX}/lib
|
||||
LINKFLAGS += `imlib2-config --libs`
|
||||
LINKFLAGS += `pkg-config --libs oggplay nestegg` -lvpx
|
||||
LINKFLAGS += `pkg-config --libs oggplay` -lvpx
|
||||
|
||||
all: ${PROG}
|
||||
|
||||
|
||||
${PROG}: ${SRC}
|
||||
${CC} -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops ${CFLAGS} ${INCLUDEFLAGS} -o ${PROG} $< ${LINKFLAGS}
|
||||
${CC} ${CFLAGS} ${INCLUDEFLAGS} -o ${PROG} ${SRC} ${LINKFLAGS}
|
||||
|
||||
clean:
|
||||
-@rm -f ${PROG} *~ core *.core src/*.o src/halloc/src/*.o
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue