Mercurial > mplayer.hg
annotate libswscale/Makefile @ 19470:b3939dba3c13
Allow to compile swscale tests
author | lucabe |
---|---|
date | Mon, 21 Aug 2006 12:15:29 +0000 |
parents | 4f71ed7cb512 |
children | cd9064593436 |
rev | line source |
---|---|
18861 | 1 |
2 include ../config.mak | |
3 | |
18989
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
4 NAME=swscale |
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
5 ifeq ($(BUILD_SHARED),yes) |
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
6 LIBVERSION=$(SWSVERSION) |
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
7 LIBMAJOR=$(SWSMAJOR) |
19410
0e37275ccbe5
Fix compilation as a win32 shared library (libavutil must be explicitly linked)
lucabe
parents:
18989
diff
changeset
|
8 EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) $(EXTRALIBS) |
18861 | 9 endif |
10 | |
18989
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
11 # NOTE: -I.. is needed to include config.h |
19420
4f71ed7cb512
Move all internal -I parameters to the front of CFLAGS to avoid using external
diego
parents:
19410
diff
changeset
|
12 CFLAGS=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil $(OPTFLAGS) \ |
18989
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
13 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ |
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
14 -D_GNU_SOURCE |
18861 | 15 |
18989
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
16 OBJS= swscale.o rgb2rgb.o yuv2rgb.o |
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
17 ifeq ($(TARGET_ALTIVEC),yes) |
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
18 OBJS+= yuv2rgb_altivec.o |
18861 | 19 endif |
20 | |
18989
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
21 HEADERS = swscale.h rgb2rgb.h |
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
22 |
f0e9de2b3780
make libswscale build system similar to the libav* one
lucabe
parents:
18861
diff
changeset
|
23 include $(SRC_PATH)/common.mak |
19470 | 24 |
25 cs_test: cs_test.c | |
26 $(CC) $(CFLAGS) -o $@ $^ -L. -lswscale -L$(SRC_PATH)/libavutil -lavutil -lm | |
27 | |
28 swscale-example: swscale-example.c | |
29 $(CC) $(CFLAGS) -o $@ $^ -L. -lswscale -L$(SRC_PATH)/libavutil -lavutil -lm |