aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile.netware
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2004-06-11 01:04:06 +0000
committerGunter Knauf <gk@gknw.de>2004-06-11 01:04:06 +0000
commit5be788ba36ac0ec335b040e6cfcbb79acf39f521 (patch)
tree9fe3d6c563000c4f65aa21ea3c7d6a45daf7e99d /lib/Makefile.netware
parent281559b31b176e480f7a43f6c6eafa18b75545b3 (diff)
some more makefile changes.
Diffstat (limited to 'lib/Makefile.netware')
-rw-r--r--lib/Makefile.netware24
1 files changed, 14 insertions, 10 deletions
diff --git a/lib/Makefile.netware b/lib/Makefile.netware
index fa0770157..a81a62f9c 100644
--- a/lib/Makefile.netware
+++ b/lib/Makefile.netware
@@ -11,7 +11,7 @@
ifndef NDKBASE
NDKBASE = /novell
endif
-INSTDIR = s:/libcurl
+INSTDIR = ..\curl-$(LIBCURL_VERSION_STR)-bin-nw
# Edit the path below to point to the base of your Zlib sources.
#ZLIB_PATH = ../../zlib-1.2.1
@@ -43,7 +43,7 @@ else
OBJDIR = debug
endif
-# Include the version info retrieved from jk_version.h
+# Include the version info retrieved from curlver.h
-include $(OBJDIR)/version.inc
# The following line defines your compiler.
@@ -52,8 +52,8 @@ ifdef METROWERKS
else
CC = gcc
endif
+CP = cp -afv
# RM = rm -f
-CP = cp -fv
# 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:
# http://www.gknw.de/development/prgtools/mkxdc.zip
@@ -61,23 +61,22 @@ MPKXDC = mkxdc
# Global flags for all compilers
CFLAGS = $(OPT) -D$(DB) -DNETWARE -nostdinc
-#CFLAGS += -DHAVE_LIBZ
ifeq ($(CC),mwccnlm)
LD = mwldnlm
LDFLAGS = -nostdlib $(PRELUDE) $(OBJDIR)/*.o -o $(OBJDIR)/$(TARGET).nlm -commandfile
-CFLAGS += -gccinc -inline off -opt nointrinsics
+CFLAGS += -gccinc -inline off -opt nointrinsics -proc 586
CFLAGS += -relax_pointers
#CFLAGS += -w on
ifeq ($(LIBARCH),LIBC)
PRELUDE = $(SDK_LIBC)/imports/libcpre.o
- CFLAGS += -align 4 -inst mmx -proc 686
+ CFLAGS += -align 4
CFLAGS += -D_POSIX_SOURCE
# CFLAGS += -D__ANSIC__
else
PRELUDE = "$(METROWERKS)/Novell Support/libraries/runtime/prelude.obj"
# CFLAGS += -include "$(METROWERKS)/Novell Support/headers/nlm_prefix.h"
- CFLAGS += -align 1 -proc 586
+ CFLAGS += -align 1
endif
else
LD = nlmconv
@@ -199,15 +198,20 @@ $(OBJDIR)/version.inc: ../include/curl/curlver.h $(OBJDIR)
dist: all
-$(RM) $(OBJDIR)/*.o $(OBJDIR)/$(TARGET).map $(OBJDIR)/$(TARGET).ncv
-$(RM) $(OBJDIR)/$(TARGET).def $(OBJDIR)/version.inc $(XDCDATA)
-# -$(CP) ../changes.txt $(OBJDIR)/
-install: all
- @[ -d $(INSTDIR) ] || mkdir $(INSTDIR)
+install: $(INSTDIR) all
@$(CP) $(TARGET).nlm $(INSTDIR)
+ @$(CP) ../CHANGES $(INSTDIR)
+ @$(CP) ../COPYING $(INSTDIR)
+ @$(CP) ../README $(INSTDIR)
+ @$(CP) ../RELEASE-NOTES $(INSTDIR)
clean:
-$(RM) -r $(OBJDIR)
+$(INSTDIR):
+ @mkdir $(INSTDIR)
+
$(OBJDIR):
@mkdir $(OBJDIR)