Mercurial > libavcodec.hg
comparison Makefile @ 3072:ab8b79651aa3 libavcodec
Simplify LDFLAGS handling for MinGW.
author | diego |
---|---|
date | Sun, 29 Jan 2006 18:32:55 +0000 |
parents | d084a83f2117 |
children | 9f486bcad2d3 |
comparison
equal
deleted
inserted
replaced
3071:cc0357a90e8f | 3072:ab8b79651aa3 |
---|---|
6 | 6 |
7 VPATH=$(SRC_PATH)/libavcodec | 7 VPATH=$(SRC_PATH)/libavcodec |
8 | 8 |
9 # NOTE: -I.. is needed to include config.h | 9 # NOTE: -I.. is needed to include config.h |
10 CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE $(AMR_CFLAGS) | 10 CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE $(AMR_CFLAGS) |
11 | |
12 #FIXME: This should be in configure/config.mak | |
13 ifeq ($(CONFIG_WIN32),yes) | |
14 LDFLAGS=-Wl,--output-def,$(@:.dll=.def) | |
15 endif | |
11 | 16 |
12 OBJS= bitstream.o utils.o mem.o allcodecs.o \ | 17 OBJS= bitstream.o utils.o mem.o allcodecs.o \ |
13 mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\ | 18 mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\ |
14 mpegaudio.o ac3enc.o mjpeg.o resample.o resample2.o dsputil.o \ | 19 mpegaudio.o ac3enc.o mjpeg.o resample.o resample2.o dsputil.o \ |
15 motion_est.o imgconvert.o imgresample.o \ | 20 motion_est.o imgconvert.o imgresample.o \ |
419 | 424 |
420 $(SLIBNAME): $(OBJS) | 425 $(SLIBNAME): $(OBJS) |
421 ifeq ($(CONFIG_PP),yes) | 426 ifeq ($(CONFIG_PP),yes) |
422 $(MAKE) -C libpostproc | 427 $(MAKE) -C libpostproc |
423 endif | 428 endif |
429 $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) | |
424 ifeq ($(CONFIG_WIN32),yes) | 430 ifeq ($(CONFIG_WIN32),yes) |
425 $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) | |
426 -lib /machine:i386 /def:$(@:.dll=.def) | 431 -lib /machine:i386 /def:$(@:.dll=.def) |
427 else | |
428 $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) | |
429 endif | 432 endif |
430 | 433 |
431 dsputil.o: dsputil.c dsputil.h | 434 dsputil.o: dsputil.c dsputil.h |
432 | 435 |
433 libpostproc/libpostproc.a: | 436 libpostproc/libpostproc.a: |