cleanup Makefile
This commit is contained in:
parent
4b42b2b5ac
commit
c4589b3013
1 changed files with 13 additions and 11 deletions
20
Makefile
20
Makefile
|
@ -1,10 +1,10 @@
|
||||||
PROG = oxframe
|
PROG = oxframe
|
||||||
SRC = src/oxframe.c
|
SRC = src/oxframe.c
|
||||||
NETEGGS = src/nestegg.o src/halloc/src/halloc.o
|
NESTEGGS = src/nestegg.o src/halloc/src/halloc.o
|
||||||
|
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
BINDIR ?= ${PREFIX}/bin
|
BINDIR ?= ${DESTDIR}${PREFIX}/bin
|
||||||
MAN1DIR ?= ${PREFIX}/man/man1
|
MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1
|
||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
CFLAGS ?= -D_FILE_OFFSET_BITS=64
|
CFLAGS ?= -D_FILE_OFFSET_BITS=64
|
||||||
|
@ -15,26 +15,28 @@ INSTALL = install
|
||||||
|
|
||||||
INCLUDEFLAGS ?= `pkg-config --cflags oggplay` `imlib2-config --cflags`
|
INCLUDEFLAGS ?= `pkg-config --cflags oggplay` `imlib2-config --cflags`
|
||||||
LINKFLAGS ?= -L${PREFIX}/lib
|
LINKFLAGS ?= -L${PREFIX}/lib
|
||||||
#LINKFLAGS += `pkg-config --libs oggplay` `imlib2-config --libs`
|
|
||||||
LINKFLAGS += `imlib2-config --libs`
|
LINKFLAGS += `imlib2-config --libs`
|
||||||
|
#LINKFLAGS += `pkg-config --libs oggplay`
|
||||||
LINKFLAGS += -L/usr/local/lib /usr/local/lib/liboggplay.a
|
LINKFLAGS += -L/usr/local/lib /usr/local/lib/liboggplay.a
|
||||||
LINKFLAGS += -loggz -lfishsound -ltheora -lvorbisenc -lvorbis -lm -logg -lkate -lpthread
|
LINKFLAGS += -loggz -lfishsound -ltheora -lvorbisenc -lvorbis -lm -logg -lkate -lpthread
|
||||||
LINKFLAGS += -lvpx
|
LINKFLAGS += -lvpx
|
||||||
|
|
||||||
|
|
||||||
all: ${PROG}
|
all: ${PROG}
|
||||||
|
|
||||||
src/nestegg.o: src/nestegg.h src/nestegg.c src/halloc/halloc.h
|
src/nestegg.o: src/nestegg.h src/nestegg.c src/halloc/halloc.h
|
||||||
src/halloc/src/halloc.o: src/halloc/src/halloc.c src/halloc/halloc.h src/halloc/src/align.h src/halloc/src/hlist.h src/halloc/src/macros.h
|
src/halloc/src/halloc.o: src/halloc/src/halloc.c src/halloc/halloc.h src/halloc/src/align.h src/halloc/src/hlist.h src/halloc/src/macros.h
|
||||||
|
|
||||||
|
${PROG}: ${SRC} ${NESTEGGS}
|
||||||
|
${CC} -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops ${CFLAGS} ${INCLUDEFLAGS} -o ${PROG} $< ${NESTEGGS} ${LINKFLAGS}
|
||||||
|
|
||||||
${PROG}: ${SRC} ${NETEGGS}
|
clean:
|
||||||
${CC} -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops ${CFLAGS} ${INCLUDEFLAGS} -o ${PROG} $< ${NETEGGS} ${LINKFLAGS}
|
-@rm -f ${PROG} *~ core *.core src/*.o src/halloc/src/*.o
|
||||||
|
|
||||||
install: ${PROG}
|
install: ${PROG}
|
||||||
${INSTALL} -c -m 555 -o root -g bin ${PROG} ${BINDIR}
|
${INSTALL} -c -m 555 -o root -g bin ${PROG} ${BINDIR}
|
||||||
${INSTALL} -c -m 555 -o root -g bin oxposterframe ${BINDIR}
|
${INSTALL} -c -m 555 -o root -g bin oxposterframe ${BINDIR}
|
||||||
|
|
||||||
clean:
|
uninstall:
|
||||||
-@rm -f ${PROG} *~ core *.core src/*.o src/halloc/src/*.o
|
@rm -f ${BINDIR}/${PROG} ${BINDIR}/oxposterframe
|
||||||
|
|
||||||
|
.PHONY: all install uninstall
|
||||||
|
|
Loading…
Reference in a new issue