Keep dllexport symbols out of static lib

This commit is contained in:
DRC
2010-02-15 17:07:46 +00:00
parent 16299d15a8
commit f40efc062f
2 changed files with 5 additions and 2 deletions

View File

@@ -174,7 +174,10 @@ wrjpgcom.exe: wrjpgcom.obj jpeg.lib
turbojpeg-static.lib: turbojpegl.obj $(LOBJS)
$(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 $^

View File

@@ -9,7 +9,7 @@ ifeq ($(NASM),)
NASM = nasm
endif
CFLAGS = -W3 -wd4996 -Iwin -I. -DDLLDEFINE
CFLAGS = -W3 -wd4996 -Iwin -I.
CDEFINES = -DWIN32 -D_CRT_SECURE_NO_DEPRECATE
NAFLAGS = -fwin32 -DWIN32 -Iwin/
ifeq ($(DEBUG), yes)