oxframe/Makefile

40 lines
1,020 B
Makefile
Raw Normal View History

PROG = oxframe
SRC = src/oxframe.c src/nestegg.c src/halloc/halloc.c
PREFIX ?= /usr/local
2010-05-23 15:32:56 +02:00
BINDIR ?= ${DESTDIR}${PREFIX}/bin
MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1
2011-10-08 16:07:54 +02:00
CC ?= gcc
CFLAGS ?= -Wall -Wno-parantheses -O3
FLAGS += -ffast-math -fsigned-char -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops
FLAGS = ${CFLAGS}
FLAGS += -I. -Isrc -Isrc/halloc
INSTALL = install
INCLUDEFLAGS ?= `pkg-config --cflags oggplay` `imlib2-config --cflags`
2011-10-08 16:07:54 +02:00
LINKFLAGS += -L${PREFIX}/lib
2010-04-23 21:47:26 +03:00
LINKFLAGS += `imlib2-config --libs`
LINKFLAGS += `pkg-config --libs oggplay` -lvpx
2011-10-08 16:07:54 +02:00
LINKFLAGS += ${LDFLAGS}
2012-02-21 15:23:25 +05:30
LINKFLAGS += -lm
all: ${PROG}
${PROG}: ${SRC}
2011-10-08 16:07:54 +02:00
${CC} ${FLAGS} ${INCLUDEFLAGS} -o ${PROG} ${SRC} ${LINKFLAGS}
2010-05-23 15:32:56 +02:00
clean:
-@rm -f ${PROG} *~ core *.core src/*.o src/halloc/src/*.o
install: ${PROG}
${INSTALL} -c -m 555 -o root -g bin ${PROG} ${BINDIR}
${INSTALL} -c -m 555 -o root -g bin oxposterframe ${BINDIR}
2010-05-23 15:32:56 +02:00
uninstall:
@rm -f ${BINDIR}/${PROG} ${BINDIR}/oxposterframe
2010-05-23 15:32:56 +02:00
.PHONY: all install uninstall