[Mplayer-cvslog] CVS: main/libdha Makefile,1.20,1.21
Sascha Sommer CVS
faust3 at mplayerhq.hu
Wed Oct 22 22:17:57 CEST 2003
Update of /cvsroot/mplayer/main/libdha
In directory mail:/var/tmp.root/cvs-serv24547/libdha
Modified Files:
Makefile
Log Message:
imho static linking causes less problems for mingw
Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/Makefile,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- Makefile 8 Apr 2003 17:11:19 -0000 1.20
+++ Makefile 22 Oct 2003 20:17:23 -0000 1.21
@@ -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)
More information about the MPlayer-cvslog
mailing list