# HG changeset patch # User faust3 # Date 1066853843 0 # Node ID 38ce28265e5f948096487825746e34560964d90d # Parent 1c8ba87ddb03d5e32c8f1e7cff5f2c349a8e1815 imho static linking causes less problems for mingw diff -r 1c8ba87ddb03 -r 38ce28265e5f libdha/Makefile --- 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)