diff options
Diffstat (limited to 'libdha/Makefile')
-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) |