Mercurial > mplayer.hg
annotate postproc/Makefile @ 13144:29a48ea224e8
properly set linking flags for NetBSD, patch by jb13@gomerbud.com
author | diego |
---|---|
date | Thu, 26 Aug 2004 01:06:02 +0000 |
parents | d2aef091743c |
children | ce1ba8fd57e7 |
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 |
12698 | 7 |
7946 | 8 SWSOBJS=$(SWSSRCS:.c=.o) |
2444 | 9 |
12698 | 10 ifeq ($(TARGET_ALTIVEC),yes) |
11 SWSOBJS += yuv2rgb_altivec.o | |
12 endif | |
13 | |
7073
b69ddd4d3bb9
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
6603
diff
changeset
|
14 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC) |
2444 | 15 # -I/usr/X11R6/include/ |
16 | |
17 .SUFFIXES: .c .o | |
18 | |
19 # .PHONY: all clean | |
20 | |
21 .c.o: | |
9402 | 22 $(CC) -c $(CFLAGS) -I.. -o $@ $< |
2444 | 23 |
9426 | 24 all: $(SWSLIB) |
2444 | 25 |
7946 | 26 $(SWSLIB): $(SWSOBJS) |
27 $(AR) r $(SWSLIB) $(SWSOBJS) | |
12632 | 28 $(RANLIB) $(SWSLIB) |
2444 | 29 |
30 clean: | |
10496 | 31 rm -f *.o *.a *~ *.so cs_test swscale-example |
2444 | 32 |
33 distclean: | |
10496 | 34 rm -f Makefile.bak *.o *.a *~ *.so .depend cs_test swscale-example |
2444 | 35 |
36 dep: depend | |
37 | |
38 depend: | |
9885
98712065a08d
10l patch by (Andreas Hess <jaska at gmx dot net>)
michael
parents:
9426
diff
changeset
|
39 $(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend |
2444 | 40 |
10174 | 41 cs_test: cs_test.o $(SWSLIB) |
42 $(CC) cs_test.o $(SWSLIB) ../cpudetect.o -DFOR_MENCODER ../mp_msg.c -o cs_test -W -Wall | |
6603
6eab60ea6c11
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
3143
diff
changeset
|
43 |
9921
61057de81510
mplayer idependant (not really yet) swscale example
michael
parents:
9885
diff
changeset
|
44 swscale-example: swscale-example.o $(SWSLIB) |
9987 | 45 $(CC) swscale-example.o $(SWSLIB) ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall |
2444 | 46 # |
47 # include dependency files if they exist | |
48 # | |
49 ifneq ($(wildcard .depend),) | |
50 include .depend | |
51 endif | |
12698 | 52 |