Modifies CLI help message for audio track selection, to make it clearer how to specif...
[HandBrake.git] / test / Makefile
blobcd88806e933a5ba13a565697729c86c08facc85b
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
5 else
6 LIBS = a52 mkv avformat avcodec avutil dca dvdread dvdcss faac mp3lame mpeg2 vorbis vorbisenc ogg samplerate x264 xvidcore mp4v2 swscale
7 endif
9 all: ../HandBrakeCLI
11 CFLAGS += -I../libhb
12 CXXFLAGS += -I../libhb
13 LIBS2 = ../libhb/libhb.a $(LIBS:%=../contrib/lib/lib%.a)
14 LDFLAGS += $(LIBS2)
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
27 clean:
28 @echo "Clean HandBrakeCLI"
29 @$(RM) ../HandBrakeCLI
30 @$(RM) ../HandBrakeCLI.exe
31 @$(RM) *.o