Mercurial > mplayer.hg
changeset 11238:38ce28265e5f
imho static linking causes less problems for mingw
author | faust3 |
---|---|
date | Wed, 22 Oct 2003 20:17:23 +0000 |
parents | 1c8ba87ddb03 |
children | a71000eeeb9c |
files | libdha/Makefile |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libdha/Makefile Wed Oct 22 19:45:19 2003 +0000 +++ b/libdha/Makefile Wed Oct 22 20:17:23 2003 +0000 @@ -15,7 +15,12 @@ #SHORTNAME = libdha.so VSHORTNAME = libdha.so endif +ifeq ($(TARGET_MINGW32),yes) +LIBNAME = libdha.a +SHORTNAME = libdha.a +else LIBNAME = libdha.so.$(VERSION) +endif SRCS=libdha.c mtrr.c pci.c pci_names.c OBJS=$(SRCS:.c=.o) @@ -43,10 +48,14 @@ $(CC) -c $(CFLAGS) -o $@ $< $(LIBNAME): $(OBJS) +ifeq ($(TARGET_MINGW32),yes) + $(AR) r $(LIBNAME) $(OBJS) +else #$(CC) -shared $(SONAME_FLAGS) -o $(LIBNAME) $(OBJS) $(LIBS) $(CC) -shared -Wl,-soname -Wl,$(LIBNAME) -o $(LIBNAME) $(OBJS) $(LIBS) ln -sf $(LIBNAME) $(SHORTNAME) ln -sf $(LIBNAME) $(VSHORTNAME) +endif all: $(LIBNAME) $(SHORTNAME)