ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/trunk/xvidcore/examples/Makefile
Revision: 684
Committed: Wed Nov 27 21:09:10 2002 UTC (21 years, 10 months ago) by edgomez
File size: 985 byte(s)
Log Message:
Ansi C + Win32 update for xvid_bench

File Contents

# Content
1 #############################################################################
2 #
3 # XviD examples Makefile
4 #
5 # $Id: Makefile,v 1.3 2002-11-27 21:09:10 edgomez Exp $
6 #
7 #############################################################################
8
9 # CC=gcc
10
11 HDIR = -I ../src
12 CFLAGS = -Wall -Os
13 LDFLAGS = -lc -lm
14
15 SOURCES= xvid_stat.c xvid_encraw.c xvid_decraw.c
16 OBJECTS=$(SOURCES:.c=.o)
17 TESTS=$(SOURCES:.c=)
18
19 all: $(TESTS)
20
21 xvid_stat: xvid_stat.o ../build/generic/libxvidcore.a
22 $(CC) $(LDFLAGS) -o $@ $< ../build/generic/libxvidcore.a
23
24 xvid_stat.o: xvid_stat.c
25 $(CC) $(CFLAGS) $(HDIR) -c $<
26
27 xvid_encraw: xvid_encraw.o ../build/generic/libxvidcore.a
28 $(CC) $(LDFLAGS) -o $@ $< ../build/generic/libxvidcore.a
29
30 xvid_encraw.o: xvid_encraw.c
31 $(CC) $(CFLAGS) $(HDIR) -c $<
32
33 xvid_decraw: xvid_decraw.o ../build/generic/libxvidcore.a
34 $(CC) $(LDFLAGS) -o $@ $< ../build/generic/libxvidcore.a
35
36 xvid_decraw.o: xvid_decraw.c
37 $(CC) $(CFLAGS) $(HDIR) -c $<
38
39
40 clean:
41 rm -f $(OBJECTS) $(TESTS)