Mercurial > mplayer.hg
annotate postproc/Makefile @ 9921:61057de81510
mplayer idependant (not really yet) swscale example
author | michael |
---|---|
date | Thu, 17 Apr 2003 19:32:46 +0000 |
parents | 98712065a08d |
children | 988c2ffc5bc1 |
rev | line source |
---|---|
2444 | 1 |
2 include ../config.mak | |
3 | |
7946 | 4 SWSLIB = libswscale.a |
2444 | 5 |
7946 | 6 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c |
7 SWSOBJS=$(SWSSRCS:.c=.o) | |
8231 | 8 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o ../libvo/aclib.o |
2444 | 9 |
7073
b69ddd4d3bb9
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
6603
diff
changeset
|
10 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC) |
2444 | 11 # -I/usr/X11R6/include/ |
12 | |
13 .SUFFIXES: .c .o | |
14 | |
15 # .PHONY: all clean | |
16 | |
17 .c.o: | |
9402 | 18 $(CC) -c $(CFLAGS) -I.. -o $@ $< |
2444 | 19 |
9426 | 20 all: $(SWSLIB) |
2444 | 21 |
7946 | 22 $(SWSLIB): $(SWSOBJS) |
23 $(AR) r $(SWSLIB) $(SWSOBJS) | |
2444 | 24 |
25 clean: | |
7946 | 26 rm -f *.o *.a *~ *.so |
2444 | 27 |
28 distclean: | |
7946 | 29 rm -f Makefile.bak *.o *.a *~ *.so .depend |
2444 | 30 |
31 dep: depend | |
32 | |
33 depend: | |
9885
98712065a08d
10l patch by (Andreas Hess <jaska at gmx dot net>)
michael
parents:
9426
diff
changeset
|
34 $(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend |
2444 | 35 |
6603
6eab60ea6c11
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
3143
diff
changeset
|
36 cs_test: $(CS_TEST_OBJS) |
6eab60ea6c11
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
3143
diff
changeset
|
37 $(CC) $(CS_TEST_OBJS) -o cs_test |
6eab60ea6c11
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
3143
diff
changeset
|
38 |
9921
61057de81510
mplayer idependant (not really yet) swscale example
michael
parents:
9885
diff
changeset
|
39 swscale-example: swscale-example.o $(SWSLIB) |
61057de81510
mplayer idependant (not really yet) swscale example
michael
parents:
9885
diff
changeset
|
40 $(CC) swscale-example.o $(SWSLIB) ../cpudetect.o ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall |
2444 | 41 # |
42 # include dependency files if they exist | |
43 # | |
44 ifneq ($(wildcard .depend),) | |
45 include .depend | |
46 endif |