Cross-Platform OpenGL Windowing Library
Revision | ec277814e440ff2978e7b379c16980fe1a6ddc25 (tree) |
---|---|
Time | 2022-03-14 06:42:33 |
Author | AlaskanEmily <emily@alas...> |
Commiter | AlaskanEmily |
Fix building both shared and static versions of glow with MSVC
@@ -6,11 +6,14 @@ all: glow.lib | ||
6 | 6 | glow_win32.obj: glow_win32.c glow.h |
7 | 7 | cl /Foglow_win32.obj /c glow_win32.c /nologo |
8 | 8 | |
9 | +glow_win32_dll.obj: glow_win32.c glow.h | |
10 | + cl /Foglow_win32_dll.obj /c glow_win32.c /nologo /DGLOW_DLL /DGLOW_EXPORTS | |
11 | + | |
9 | 12 | glow.lib: glow_win32.obj |
10 | 13 | lib /NOLOGO /OUT:glow.lib glow_win32.obj |
11 | 14 | |
12 | -glow.dll: glow_win32.obj | |
13 | - link /nologo /dll /out:glow.dll /implib:glow.lib OpenGL32.lib gdi32.lib user32.lib glow_win32.obj | |
15 | +glow.dll: glow_win32_dll.obj | |
16 | + link /nologo /dll /out:glow.dll /implib:glow_dll.lib OpenGL32.lib gdi32.lib user32.lib glow_win32_dll.obj | |
14 | 17 | |
15 | 18 | glow_sdl2.obj: glow_sdl2.c glow.h |
16 | 19 | cl /I"$(MAKEDIR)\include" /DGLOW_EXPORTS /DGLOW_DLL /c glow_sdl2.c /nologo |