Revision daf8e955 Makefile

View differences:

Makefile
10 10
LDFLAGS+=-p
11 11
endif
12 12

  
13
PROG= ffmpeg ffserver
13
ifeq ($(CONFIG_WIN32),yes)
14
EXE=.exe
15
PROG=ffmpeg$(EXE)
16
else
17
EXT=
18
PROG=ffmpeg ffserver
19
endif
14 20

  
15 21
all: lib $(PROG)
16 22

  
......
18 24
	$(MAKE) -C libavcodec all
19 25
	$(MAKE) -C libav all
20 26

  
21
ffmpeg: ffmpeg.o libav/libav.a libavcodec/libavcodec.a
22
	gcc $(LDFLAGS) -o $@ $^ -lm
27
ffmpeg$(EXE): ffmpeg.o libav/libav.a libavcodec/libavcodec.a
28
	$(CC) $(LDFLAGS) -o $@ $^ -lm
23 29

  
24
ffserver: ffserver.o libav/libav.a libavcodec/libavcodec.a
25
	gcc $(LDFLAGS) -o $@ $^ -lm
30
ffserver$(EXE): ffserver.o libav/libav.a libavcodec/libavcodec.a
31
	$(CC) $(LDFLAGS) -o $@ $^ -lm
26 32

  
27 33
%.o: %.c
28
	gcc $(CFLAGS) -c -o $@ $< 
34
	$(CC) $(CFLAGS) -c -o $@ $< 
29 35

  
30 36
install: all
31 37
	install -s -m 755 $(PROG) $(prefix)/bin

Also available in: Unified diff