diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-10-22 20:17:23 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-10-22 20:17:23 +0000 |
commit | ba171b8809fa688b2048e43c4e01a9db862a8525 (patch) | |
tree | 0361fe6beda8cd57a9c7b3213f003e77df36be30 /libdha | |
parent | 454b7c4c3f4c04589cff10e0fc38f9e05ae8d091 (diff) | |
download | mpv-ba171b8809fa688b2048e43c4e01a9db862a8525.tar.bz2 mpv-ba171b8809fa688b2048e43c4e01a9db862a8525.tar.xz |
imho static linking causes less problems for mingw
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11239 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libdha')
-rw-r--r-- | libdha/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libdha/Makefile b/libdha/Makefile index 3a941c3071..e4479eca12 100644 --- a/libdha/Makefile +++ b/libdha/Makefile @@ -15,7 +15,12 @@ SONAME_FLAGS = -Wl,-soname,$(SHORTNAME) #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 @@ endif $(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) |