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
|
CC ?= gcc
|
||||||
|
WINDRES ?= windres
|
||||||
STRIP ?= -s
|
STRIP ?= -s
|
||||||
|
|
||||||
GKRELLMD_INCLUDES = gkrellmd.h $(SHARED_PATH)/log.h
|
GKRELLMD_INCLUDES = gkrellmd.h $(SHARED_PATH)/log.h
|
||||||
|
@ -168,10 +169,10 @@ endif
|
||||||
|
|
||||||
windows: libgkrellmd.a
|
windows: libgkrellmd.a
|
||||||
$(MAKE) \
|
$(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" \
|
LINK_FLAGS="${LINK_FLAGS} -mconsole" \
|
||||||
EXTRAOBJS="win32-resource.o win32-plugin.o" \
|
EXTRAOBJS="${EXTRAOBJS} win32-resource.o win32-plugin.o" \
|
||||||
SYS_LIBS=" -llargeint -lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lntdll -lintl" \
|
SYS_LIBS="-lws2_32 -lwtsapi32 -lpdh -lnetapi32 -liphlpapi -lntdll -lintl" \
|
||||||
gkrellmd
|
gkrellmd
|
||||||
|
|
||||||
install: install_bin install_inc install_man
|
install: install_bin install_inc install_man
|
||||||
|
@ -246,7 +247,7 @@ log.o: $(SHARED_PATH)/log.c $(SHARED_PATH)/log.h $(GKRELLMD_H)
|
||||||
win32-gui.o: win32-gui.c
|
win32-gui.o: win32-gui.c
|
||||||
win32-plugin.o: win32-plugin.c win32-plugin.h $(GKRELLMD_H)
|
win32-plugin.o: win32-plugin.c win32-plugin.h $(GKRELLMD_H)
|
||||||
win32-resource.o: win32-resource.rc win32-resource.h
|
win32-resource.o: win32-resource.rc win32-resource.h
|
||||||
windres -I.. -o win32-resource.o win32-resource.rc
|
$(WINDRES) $< -o $@
|
||||||
win32-libgkrellmd.o: win32-libgkrellmd.c win32-plugin.h $(GKRELLMD_H)
|
win32-libgkrellmd.o: win32-libgkrellmd.c win32-plugin.h $(GKRELLMD_H)
|
||||||
libgkrellmd.a: win32-libgkrellmd.o
|
libgkrellmd.a: win32-libgkrellmd.o
|
||||||
ar -cr libgkrellmd.a win32-libgkrellmd.o
|
ar -cr libgkrellmd.a win32-libgkrellmd.o
|
||||||
|
|
|
@ -62,6 +62,7 @@ ifneq ($(HAVE_SSL),1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
|
WINDRES ?= windres
|
||||||
STRIP ?= -s
|
STRIP ?= -s
|
||||||
|
|
||||||
GKRELLM_INCLUDES = gkrellm.h gkrellm-public-proto.h $(SHARED_PATH)/log.h
|
GKRELLM_INCLUDES = gkrellm.h gkrellm-public-proto.h $(SHARED_PATH)/log.h
|
||||||
|
@ -185,10 +186,10 @@ solaris:
|
||||||
|
|
||||||
windows: libgkrellm.a
|
windows: libgkrellm.a
|
||||||
$(MAKE) \
|
$(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" \
|
LINK_FLAGS="${LINK_FLAGS} -mwindows" \
|
||||||
EXTRAOBJS="${EXTRAOBJS} winops-win32.o win32-plugin.o win32-resource.o" \
|
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="" \
|
X11_LIBS="" \
|
||||||
UNIXOBJS="" \
|
UNIXOBJS="" \
|
||||||
gkrellm
|
gkrellm
|
||||||
|
@ -341,7 +342,7 @@ winops-win32.o: winops-win32.c $(GKRELLM_H)
|
||||||
win32-plugin.o: win32-plugin.c win32-plugin.h
|
win32-plugin.o: win32-plugin.c win32-plugin.h
|
||||||
win32-libgkrellm.o: win32-libgkrellm.c win32-plugin.h
|
win32-libgkrellm.o: win32-libgkrellm.c win32-plugin.h
|
||||||
win32-resource.o: win32-resource.rc win32-resource.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
|
libgkrellm.a: win32-libgkrellm.o
|
||||||
ar -cr libgkrellm.a win32-libgkrellm.o
|
ar -cr libgkrellm.a win32-libgkrellm.o
|
||||||
|
|
Loading…
Reference in New Issue