makefiles
This commit is contained in:
parent
c260ce6c52
commit
5614af1536
1 changed files with 8 additions and 5 deletions
11
Makefile
11
Makefile
|
@ -6,21 +6,24 @@ BINDIR ?= ${DESTDIR}${PREFIX}/bin
|
||||||
MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1
|
MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1
|
||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
CFLAGS += -Wall -ffast-math -fsigned-char -Wno-parantheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops
|
CFLAGS ?= -Wall -Wno-parantheses -O3
|
||||||
CFLAGS += -I. -Isrc -Isrc/halloc
|
FLAGS += -ffast-math -fsigned-char -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops
|
||||||
|
FLAGS = ${CFLAGS}
|
||||||
|
FLAGS += -I. -Isrc -Isrc/halloc
|
||||||
|
|
||||||
INSTALL = install
|
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 += `imlib2-config --libs`
|
LINKFLAGS += `imlib2-config --libs`
|
||||||
LINKFLAGS += `pkg-config --libs oggplay` -lvpx
|
LINKFLAGS += `pkg-config --libs oggplay` -lvpx
|
||||||
|
LINKFLAGS += ${LDFLAGS}
|
||||||
|
|
||||||
all: ${PROG}
|
all: ${PROG}
|
||||||
|
|
||||||
|
|
||||||
${PROG}: ${SRC}
|
${PROG}: ${SRC}
|
||||||
${CC} ${CFLAGS} ${INCLUDEFLAGS} -o ${PROG} ${SRC} ${LINKFLAGS}
|
${CC} ${FLAGS} ${INCLUDEFLAGS} -o ${PROG} ${SRC} ${LINKFLAGS}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-@rm -f ${PROG} *~ core *.core src/*.o src/halloc/src/*.o
|
-@rm -f ${PROG} *~ core *.core src/*.o src/halloc/src/*.o
|
||||||
|
|
Loading…
Reference in a new issue