Skip to content
Browse files

Add PREFIX/include to CFLAGS and PREFIX/lib to LDFLAGS

  • Loading branch information...
1 parent 8b7fb48 commit f9253f67a4d353788348123ef7f14d2a67b4a53a @wereHamster committed Mar 18, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 Makefile
View
9 Makefile
@@ -8,7 +8,8 @@ ARCH = C
CC = gcc
ASM = yasm
-CFLAGS = -Iinclude -Wall -std=c99 -O3
+CFLAGS = -Iinclude -I$(PREFIX)/include -Wall -std=c99 -O3
+LDFLAGS = -L$(PREFIX)/lib
OBJS = src/core/conf.o src/core/log.o src/stream/stream.o src/core/engine.o \
src/core/opengl.o src/stream/buffer.o \
@@ -32,13 +33,13 @@ $(LIBS):
rm -f $@.native
yukon-core-lib: $(OBJS)
- $(CC) -shared -o $@ $(OBJS) -lasound -lseom
+ $(CC) -shared -o $@ $(OBJS) $(LDFLAGS) -lasound -lseom
filter: src/filter/main.c src/filter/wav.c src/filter/y4m.c
- $(CC) $(CFLAGS) -o $@ src/filter/main.c src/filter/wav.c src/filter/y4m.c -lasound -lseom
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lasound -lseom
stat: src/tools/stat.c
- $(CC) $(CFLAGS) -o $@ $< -lseom
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lseom
sysconf:
echo 'LDPATH="$(PREFIX)/$(LIBDIR)/yukon"' > $@

0 comments on commit f9253f6

Please sign in to comment.
Something went wrong with that request. Please try again.