Mercurial > mplayer.hg
diff libdha/Makefile @ 11238:38ce28265e5f
imho static linking causes less problems for mingw
author | faust3 |
---|---|
date | Wed, 22 Oct 2003 20:17:23 +0000 |
parents | 60d1ccf22469 |
children | 841fd0c2f2e3 |
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)