Skip to content

Commit

Permalink
update makefile to build test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tee0125 committed Mar 22, 2018
1 parent 6bf5f92 commit aa820c0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@

all:
gcc _demux.c -I/home/tee/anaconda3/envs/dev/include/ -L/home/tee/anaconda3/envs/dev/lib -lavcodec -lavformat -lavutil -lavfilter -lvpx -lswscale -lswresample -g
CC=/usr/bin/gcc

CFLAGS=-I/Users/tee/anaconda3/envs/dev/include -g
LDFLAGS=-L/Users/tee/anaconda3/envs/dev/lib -Xlinker -rpath -Xlinker /Users/tee/anaconda3/envs/dev/lib

.c.o:
${CC} -c ${CFLAGS} $<

all: test

test: _demux.o _yuv2rgb.o
${CC} $^ ${LDFLAGS} -lavcodec -lavformat -lavutil -lavfilter -lvpx -lswscale -lswresample

0 comments on commit aa820c0

Please sign in to comment.