mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-29 13:03:42 +01:00
Merge pull request #145 from twadleigh/dll-a-for-windows
Generate libopenlibm.dll.a for windows.
This commit is contained in:
commit
b6b8422bc2
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -26,10 +26,12 @@ OBJS = $(patsubst %.f,%.f.o,\
|
||||||
$(patsubst %.S,%.S.o,\
|
$(patsubst %.S,%.S.o,\
|
||||||
$(patsubst %.c,%.c.o,$(filter-out $(addprefix src/,$(DUPLICATE_SRCS)),$(SRCS)))))
|
$(patsubst %.c,%.c.o,$(filter-out $(addprefix src/,$(DUPLICATE_SRCS)),$(SRCS)))))
|
||||||
|
|
||||||
# If we're on windows, don't do versioned shared libraries. If we're on OSX,
|
# If we're on windows, don't do versioned shared libraries. Also, generate an import library
|
||||||
# put the version number before the .dylib. Otherwise, put it after.
|
# for the DLL. If we're on OSX, put the version number before the .dylib. Otherwise,
|
||||||
|
# put it after.
|
||||||
ifeq ($(OS), WINNT)
|
ifeq ($(OS), WINNT)
|
||||||
OLM_MAJOR_MINOR_SHLIB_EXT := $(SHLIB_EXT)
|
OLM_MAJOR_MINOR_SHLIB_EXT := $(SHLIB_EXT)
|
||||||
|
LDFLAGS_add += -Wl,--out-implib,libopenlibm.$(OLM_MAJOR_MINOR_SHLIB_EXT).a
|
||||||
else
|
else
|
||||||
ifeq ($(OS), Darwin)
|
ifeq ($(OS), Darwin)
|
||||||
OLM_MAJOR_MINOR_SHLIB_EXT := $(SOMAJOR).$(SOMINOR).$(SHLIB_EXT)
|
OLM_MAJOR_MINOR_SHLIB_EXT := $(SOMAJOR).$(SOMINOR).$(SHLIB_EXT)
|
||||||
|
|
Loading…
Reference in a new issue