1 |
############################################################################# |
2 |
# |
3 |
# XviD examples Makefile |
4 |
# |
5 |
# $Id: Makefile,v 1.10 2006-10-11 13:52:06 Skal Exp $ |
6 |
# |
7 |
############################################################################# |
8 |
|
9 |
include ../build/generic/platform.inc |
10 |
|
11 |
# is make running into windows? |
12 |
ifdef SYSTEMROOT |
13 |
EXTRALIBS = -lole32 -lavifil32 -lpthread -lm |
14 |
else |
15 |
EXTRALIBS = -lpthread -lc -lm |
16 |
endif |
17 |
|
18 |
HDIR = -I../src |
19 |
CFLAGS = -g $(ARCHITECTURE) $(BUS) $(ENDIANNESS) $(FEATURES) $(SPECIFIC_CFLAGS) |
20 |
LDFLAGS = ../build/generic/=build/$(STATIC_LIB) $(EXTRALIBS) |
21 |
|
22 |
SOURCES= xvid_encraw.c xvid_decraw.c xvid_bench.c |
23 |
OBJECTS=$(SOURCES:.c=.o) |
24 |
TESTS=$(SOURCES:.c=) |
25 |
|
26 |
all: $(TESTS) |
27 |
|
28 |
xvid_encraw: xvid_encraw.o |
29 |
$(CC) -o $@ $< $(LDFLAGS) |
30 |
|
31 |
xvid_encraw.o: xvid_encraw.c |
32 |
$(CC) $(CFLAGS) $(HDIR) -c $< |
33 |
|
34 |
xvid_decraw: xvid_decraw.o |
35 |
$(CC) -o $@ $< $(LDFLAGS) |
36 |
|
37 |
xvid_decraw.o: xvid_decraw.c |
38 |
$(CC) $(CFLAGS) $(HDIR) -c $< |
39 |
|
40 |
xvid_bench: xvid_bench.o |
41 |
$(CC) -o $@ $< $(LDFLAGS) |
42 |
|
43 |
xvid_bench.o: xvid_bench.c |
44 |
$(CC) $(CFLAGS) $(HDIR) -c $< |
45 |
|
46 |
clean: |
47 |
rm -f $(OBJECTS) $(TESTS) |