Skip to content

Commit

Permalink
Add Makefile fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamvitJ committed Nov 4, 2017
1 parent d3312ff commit 89ca52f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
CFLAGS = -O3 -D__STDC_CONSTANT_MACROS
LDFLAGS = -lswscale -lavdevice -lavformat -lavcodec -lswresample -lavutil -lpthread -lbz2 -lz -lc -lrt
INSTALLED_DEPS = -Idependencies/include -Ldependencies/lib
LDFLAGS = -lswscale -lavdevice -lavformat -lavcodec -lswresample -lavutil -lpthread -lbz2 -lz -lc -liconv -llzma
INSTALLED_DEPS = -Idependencies/include -Ldependencies/lib -L/usr/local/lib
FRAMEWORKS = -framework CoreMedia -framework AudioToolbox -framework CoreVideo -framework VideoToolbox -framework CoreFoundation -framework Security

mpegflow: mpegflow.cpp
g++ $< -o $@ $(CFLAGS) $(LDFLAGS) $(INSTALLED_DEPS)
g++ $< -o $@ $(CFLAGS) $(LDFLAGS) $(INSTALLED_DEPS) $(FRAMEWORKS)

vis: vis.cpp
g++ $< -o $@ $(CFLAGS) -lopencv_highgui -lopencv_videoio -lopencv_imgproc -lopencv_imgcodecs -lopencv_core -lpng $(LDFLAGS) $(INSTALLED_DEPS)
Expand Down

0 comments on commit 89ca52f

Please sign in to comment.