Mercurial > libavcodec.hg
comparison Makefile @ 994:7701ff462e3a libavcodec
os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
author | michaelni |
---|---|
date | Sat, 11 Jan 2003 20:34:38 +0000 |
parents | 979f3cbd08a2 |
children | edc10966b081 |
comparison
equal
deleted
inserted
replaced
993:895d3b01c6f4 | 994:7701ff462e3a |
---|---|
89 endif | 89 endif |
90 | 90 |
91 SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S) | 91 SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S) |
92 OBJS := $(OBJS) $(ASM_OBJS) | 92 OBJS := $(OBJS) $(ASM_OBJS) |
93 | 93 |
94 LIB= libavcodec.a | 94 LIB= $(LIBPREF)avcodec$(LIBSUF) |
95 ifeq ($(BUILD_SHARED),yes) | 95 ifeq ($(BUILD_SHARED),yes) |
96 SLIB= libavcodec.so | 96 SLIB= $(SLIBPREF)avcodec$(SLIBSUF) |
97 endif | 97 endif |
98 TESTS= imgresample-test dct-test motion-test fft-test | 98 TESTS= imgresample-test dct-test motion-test fft-test |
99 | 99 |
100 all: $(LIB) $(SLIB) | 100 all: $(LIB) $(SLIB) |
101 | 101 |
102 tests: apiexample cpuid_test $(TESTS) | 102 tests: apiexample cpuid_test $(TESTS) |
103 | 103 |
104 $(LIB): $(OBJS) | 104 $(LIB): $(OBJS) |
105 rm -f $@ | 105 rm -f $@ |
106 $(AR) rc $@ $(OBJS) | 106 $(AR) rc $@ $(OBJS) |
107 ifneq ($(CONFIG_OS2),yes) | |
107 $(RANLIB) $@ | 108 $(RANLIB) $@ |
109 endif | |
108 | 110 |
109 $(SLIB): $(OBJS) | 111 $(SLIB): $(OBJS) |
110 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) | 112 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) |
111 | 113 |
112 dsputil.o: dsputil.c dsputil.h | 114 dsputil.o: dsputil.c dsputil.h |