Keep dllexport symbols out of static lib
This commit is contained in:
@@ -174,7 +174,10 @@ wrjpgcom.exe: wrjpgcom.obj jpeg.lib
|
|||||||
turbojpeg-static.lib: turbojpegl.obj $(LOBJS)
|
turbojpeg-static.lib: turbojpegl.obj $(LOBJS)
|
||||||
$(AR) -out:$@ $^
|
$(AR) -out:$@ $^
|
||||||
|
|
||||||
turbojpeg.dll turbojpeg.lib: turbojpegl.obj $(LOBJS)
|
turbojpeg-dll.obj: turbojpegl.c
|
||||||
|
$(CC) $(CFLAGS) -DDLLDEFINE -c $< -Fo$@
|
||||||
|
|
||||||
|
turbojpeg.dll turbojpeg.lib: turbojpeg-dll.obj $(LOBJS)
|
||||||
$(LINK) $(LDFLAGS) -dll -out:turbojpeg.dll -implib:turbojpeg.lib $^
|
$(LINK) $(LDFLAGS) -dll -out:turbojpeg.dll -implib:turbojpeg.lib $^
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ ifeq ($(NASM),)
|
|||||||
NASM = nasm
|
NASM = nasm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS = -W3 -wd4996 -Iwin -I. -DDLLDEFINE
|
CFLAGS = -W3 -wd4996 -Iwin -I.
|
||||||
CDEFINES = -DWIN32 -D_CRT_SECURE_NO_DEPRECATE
|
CDEFINES = -DWIN32 -D_CRT_SECURE_NO_DEPRECATE
|
||||||
NAFLAGS = -fwin32 -DWIN32 -Iwin/
|
NAFLAGS = -fwin32 -DWIN32 -Iwin/
|
||||||
ifeq ($(DEBUG), yes)
|
ifeq ($(DEBUG), yes)
|
||||||
|
|||||||
Reference in New Issue
Block a user