1 SYSTEM
= $(shell uname
-s
)
3 ifeq ($(SYSTEM
),CYGWIN_NT-5.1
)
4 LIBS
= a52 mkv avformat avcodec avutil dca dvdread faac mp3lame mpeg2 vorbis vorbisenc ogg samplerate x264 xvidcore mp4v2 swscale
6 LIBS
= a52 mkv avformat avcodec avutil dca dvdread dvdcss faac mp3lame mpeg2 vorbis vorbisenc ogg samplerate x264 xvidcore mp4v2 swscale
12 CXXFLAGS
+= -I..
/libhb
13 LIBS2
= ..
/libhb
/libhb.a
$(LIBS
:%=..
/contrib
/lib
/lib
%.a
)
16 ..
/HandBrakeCLI
: test.c parsecsv.c
$(LIBS2
)
17 @CMD
="$(CC) $(CFLAGS) -o test.o -c test.c"; $$CMD || \
18 ( echo
"Compile line for $@ was:"; echo
$$CMD; false
)
19 @CMD
="$(CC) $(CFLAGS) -o parsecsv.o -c parsecsv.c"; $$CMD || \
20 ( echo
"Compile line for $@ was:"; echo
$$CMD; false
)
21 @echo
"Link HandBrakeCLI"
22 @CMD
="g++ $(CXXFLAGS) -o ../HandBrakeCLI test.o parsecsv.o $(LDFLAGS) -lz -lpthread"; $$CMD || \
23 ( echo
"Compile line for $@ was:"; echo
$$CMD; false
)
24 @CMD
="rm -rf ../plugins ; mkdir ../plugins ; cp ../contrib/lib/libquicktime/* ../plugins"; $$CMD
28 @echo
"Clean HandBrakeCLI"
29 @
$(RM
) ..
/HandBrakeCLI
30 @
$(RM
) ..
/HandBrakeCLI.exe