aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2007-01-26 08:50:06 +0000
committerGunter Knauf <gk@gknw.de>2007-01-26 08:50:06 +0000
commit89f9cb4041d033ad8dde18904b382a728aed3f96 (patch)
tree01a678237ff811bc812ad6e03b98c70fe5f260b8
parent2b280bcc69137e53650b06372cdfc60d86d214a3 (diff)
use provided resource file for exe.
-rw-r--r--src/Makefile.m3210
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Makefile.m32 b/src/Makefile.m32
index 5e463a9c8..819dfd2fd 100644
--- a/src/Makefile.m32
+++ b/src/Makefile.m32
@@ -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 $<