Ticket #5809: Makefile

File Makefile, 455 bytes (added by driegel, 10 years ago)
Line 
1
2FFMPEG_ROOT = /home/driegel/projects/ffmpeg
3
4CFLAGS = -I$(FFMPEG_ROOT)/libavformat/ -g
5LDFLAGS = -L$(FFMPEG_ROOT)/libavformat/ -lavformat
6LDFLAGS += -L$(FFMPEG_ROOT)/libavcodec/ -lavcodec
7LDFLAGS += -L$(FFMPEG_ROOT)/libavutil/ -lavutil
8LDFLAGS += -L$(FFMPEG_ROOT)/libswresample/ -lswresample
9
10all: test
11
12objects = encoded_audio.o test.o
13
14test: $(objects)
15 gcc -o $@ $^ $(LDFLAGS)
16
17%.o: %.c
18 $(CC) -c -o $@ $< $(CFLAGS)
19
20.PHONY:
21clean:
22 rm -f test *.o