AR = $(CROSSPREFIX)ar
RANLIB = $(CROSSPREFIX)ranlib
RC = $(CROSSPREFIX)windres
-RCFLAGS = --include-dir=$(PROOT)/include -DDEBUGBUILD=0 -O COFF -i
+RCFLAGS = --include-dir=$(PROOT)/include -DDEBUGBUILD=0 -O COFF
+ifeq ($(ARCH),w64)
+RCFLAGS += -F pe-x86-64
+else
+RCFLAGS += -F pe-i386
+endif
STRIP = $(CROSSPREFIX)strip -g
# Platform-dependent helper tool macros
$(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@
%.res: %.rc
- $(RC) $(RCFLAGS) $< -o $@
+ $(RC) $(RCFLAGS) -i $< -o $@
clean:
ifeq "$(wildcard $(PROOT)/include/curl/curlbuild.h.dist)" "$(PROOT)/include/curl/curlbuild.h.dist"
LDFLAGS = -s
AR = $(CROSSPREFIX)ar
RC = $(CROSSPREFIX)windres
-RCFLAGS = --include-dir=$(PROOT)/include -O COFF -i
+RCFLAGS = --include-dir=$(PROOT)/include -O COFF
+ifeq ($(ARCH),w64)
+RCFLAGS += -F pe-x86-64
+else
+RCFLAGS += -F pe-i386
+endif
+STRIP = $(CROSSPREFIX)strip -g
# We may need these someday
# PERL = perl
$(CC) $(INCLUDES) $(CFLAGS) -c $<
%.res: %.rc
- $(RC) $(RCFLAGS) $< -o $@
+ $(RC) $(RCFLAGS) -i $< -o $@
clean:
ifeq "$(wildcard tool_hugehelp.c.cvs)" "tool_hugehelp.c.cvs"