some more makefile changes.
This commit is contained in:
parent
601062455c
commit
8d0c77403c
@ -56,7 +56,7 @@ CP = cp -afv
|
|||||||
# RM = rm -f
|
# RM = rm -f
|
||||||
# if you want to mark the target as MTSAFE you will need a tool for
|
# if you want to mark the target as MTSAFE you will need a tool for
|
||||||
# generating the xdc data for the linker; here's a minimal tool:
|
# generating the xdc data for the linker; here's a minimal tool:
|
||||||
# http://www.gknw.de/development/prgtools/mkxdc.zip
|
# http://www.gknw.com/development/prgtools/mkxdc.zip
|
||||||
MPKXDC = mkxdc
|
MPKXDC = mkxdc
|
||||||
|
|
||||||
# Global flags for all compilers
|
# Global flags for all compilers
|
||||||
@ -188,8 +188,8 @@ OBJS = \
|
|||||||
all: $(OBJDIR) $(OBJDIR)/version.inc $(OBJDIR)/$(TARGET).nlm
|
all: $(OBJDIR) $(OBJDIR)/version.inc $(OBJDIR)/$(TARGET).nlm
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.c
|
$(OBJDIR)/%.o: %.c
|
||||||
@echo Compiling $<
|
# @echo Compiling $<
|
||||||
@$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(OBJDIR)/version.inc: ../include/curl/curlver.h $(OBJDIR)
|
$(OBJDIR)/version.inc: ../include/curl/curlver.h $(OBJDIR)
|
||||||
@echo Creating $@
|
@echo Creating $@
|
||||||
|
@ -20,7 +20,10 @@
|
|||||||
# *
|
# *
|
||||||
# * $Id$
|
# * $Id$
|
||||||
# ***************************************************************************
|
# ***************************************************************************
|
||||||
# fetch libcurl version number from input file and write them to STDOUT
|
# awk script which fetches libcurl version number and string from input file
|
||||||
|
# and writes them to STDOUT. Here you can get an awk version for Win32:
|
||||||
|
# http://www.gknw.com/development/prgtools/awk.zip
|
||||||
|
#
|
||||||
BEGIN {
|
BEGIN {
|
||||||
while ((getline < ARGV[1]) > 0) {
|
while ((getline < ARGV[1]) > 0) {
|
||||||
if (match ($0, /^#define LIBCURL_VERSION "[^"]+"/)) {
|
if (match ($0, /^#define LIBCURL_VERSION "[^"]+"/)) {
|
||||||
@ -37,8 +40,6 @@ BEGIN {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
libcurl_ver = libcurl_ver_major "," libcurl_ver_minor "," libcurl_ver_patch;
|
libcurl_ver = libcurl_ver_major "," libcurl_ver_minor "," libcurl_ver_patch;
|
||||||
|
|
||||||
print "LIBCURL_VERSION = " libcurl_ver "";
|
print "LIBCURL_VERSION = " libcurl_ver "";
|
||||||
print "LIBCURL_VERSION_STR = " libcurl_ver_str "";
|
print "LIBCURL_VERSION_STR = " libcurl_ver_str "";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ CP = cp -afv
|
|||||||
# RM = rm -f
|
# RM = rm -f
|
||||||
# if you want to mark the target as MTSAFE you will need a tool for
|
# if you want to mark the target as MTSAFE you will need a tool for
|
||||||
# generating the xdc data for the linker; here's a minimal tool:
|
# generating the xdc data for the linker; here's a minimal tool:
|
||||||
# http://www.gknw.de/development/prgtools/mkxdc.zip
|
# http://www.gknw.com/development/prgtools/mkxdc.zip
|
||||||
MPKXDC = mkxdc
|
MPKXDC = mkxdc
|
||||||
|
|
||||||
# Global flags for all compilers
|
# Global flags for all compilers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user