Skip to content
Snippets Groups Projects
Commit 89f9cb40 authored by Guenter Knauf's avatar Guenter Knauf
Browse files

use provided resource file for exe.

parent 2b280bcc
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,8 @@ ZLIB_PATH = ../../zlib-1.2.3
endif
CC = gcc
RC = windres
RCFLAGS = --include-dir=../include -O COFF -i
RM = rm -f
STRIP = strip -s
......@@ -62,12 +64,13 @@ curl_OBJECTS := $(patsubst %.c,%.o,$(notdir $(strip $(CURL_SOURCES) ../lib/timev
# curlx_OBJECTS := $(patsubst %.c,%.o,$(notdir $(strip $(CURLX_ONES))))
# vpath %.c ../lib
.SUFFIXES: .rc .res
all: curl.exe
curl.exe: $(curl_OBJECTS) $(curl_DEPENDENCIES)
curl.exe: curl.res $(curl_OBJECTS) $(curl_DEPENDENCIES)
$(RM) $@
$(LINK) $(curl_OBJECTS) $(curl_LDADD)
$(LINK) $< $(curl_OBJECTS) $(curl_LDADD)
$(STRIP) $@
timeval.o: ../lib/timeval.c
......@@ -78,6 +81,9 @@ timeval.o: ../lib/timeval.c
# $(RM) hugehelp.c
# $(NROFF) -man ../curl.1 | $(PERL) mkhelp.pl ../README.curl > hugehelp.c
.rc.res:
$(RC) $(RCFLAGS) $< -o $@
.c.o:
$(COMPILE) -c $<
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment