Do not link against liblargeint on windows anymore. Allow overriding windres via environment variables (preparation for win64 builds)
This commit is contained in:
parent
61ef995a7c
commit
915d03ad66
|
@ -49,6 +49,7 @@ endif
|
|||
|
||||
|
||||
CC ?= gcc
|
||||
WINDRES ?= windres
|
||||
STRIP ?= -s
|
||||
|
||||
GKRELLMD_INCLUDES = gkrellmd.h $(SHARED_PATH)/log.h
|
||||
|
@ -168,10 +169,10 @@ endif
|
|||
|
||||
windows: libgkrellmd.a
|
||||
$(MAKE) \
|
||||
CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0501 -DWINVER=0x0501" \
|
||||
CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN" \
|
||||
LINK_FLAGS="${LINK_FLAGS} -mconsole" \
|
||||
EXTRAOBJS="win32-resource.o win32-plugin.o" \
|
||||
SYS_LIBS=" -llargeint -lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lntdll -lintl" \
|
||||
EXTRAOBJS="${EXTRAOBJS} win32-resource.o win32-plugin.o" \
|
||||
SYS_LIBS="-lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lntdll -lintl" \
|
||||
gkrellmd
|
||||
|
||||
install: install_bin install_inc install_man
|
||||
|
@ -245,8 +246,8 @@ sysdeps-unix.o: sysdeps-unix.c ../src/gkrellm-sysdeps.h $(SYSDEPS) $(GKRELLMD_H)
|
|||
log.o: $(SHARED_PATH)/log.c $(SHARED_PATH)/log.h $(GKRELLMD_H)
|
||||
win32-gui.o: win32-gui.c
|
||||
win32-plugin.o: win32-plugin.c win32-plugin.h $(GKRELLMD_H)
|
||||
win32-resource.o: win32-resource.rc win32-resource.h
|
||||
windres -I.. -o win32-resource.o win32-resource.rc
|
||||
win32-resource.o: win32-resource.rc win32-resource.h
|
||||
$(WINDRES) $< -o $@
|
||||
win32-libgkrellmd.o: win32-libgkrellmd.c win32-plugin.h $(GKRELLMD_H)
|
||||
libgkrellmd.a: win32-libgkrellmd.o
|
||||
ar -cr libgkrellmd.a win32-libgkrellmd.o
|
||||
|
|
|
@ -62,6 +62,7 @@ ifneq ($(HAVE_SSL),1)
|
|||
endif
|
||||
|
||||
CC ?= gcc
|
||||
WINDRES ?= windres
|
||||
STRIP ?= -s
|
||||
|
||||
GKRELLM_INCLUDES = gkrellm.h gkrellm-public-proto.h $(SHARED_PATH)/log.h
|
||||
|
@ -185,10 +186,10 @@ solaris:
|
|||
|
||||
windows: libgkrellm.a
|
||||
$(MAKE) \
|
||||
CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0501 -DWINVER=0x0501" \
|
||||
CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN" \
|
||||
LINK_FLAGS="${LINK_FLAGS} -mwindows" \
|
||||
EXTRAOBJS="${EXTRAOBJS} winops-win32.o win32-plugin.o win32-resource.o" \
|
||||
SYS_LIBS=" -llargeint -lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lntdll -lintl" \
|
||||
SYS_LIBS="-lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lntdll -lintl" \
|
||||
X11_LIBS="" \
|
||||
UNIXOBJS="" \
|
||||
gkrellm
|
||||
|
@ -341,7 +342,7 @@ winops-win32.o: winops-win32.c $(GKRELLM_H)
|
|||
win32-plugin.o: win32-plugin.c win32-plugin.h
|
||||
win32-libgkrellm.o: win32-libgkrellm.c win32-plugin.h
|
||||
win32-resource.o: win32-resource.rc win32-resource.h
|
||||
windres -o win32-resource.o win32-resource.rc
|
||||
$(WINDRES) $< -o $@
|
||||
|
||||
libgkrellm.a: win32-libgkrellm.o
|
||||
ar -cr libgkrellm.a win32-libgkrellm.o
|
||||
|
|
Loading…
Reference in New Issue