Annotation of embedaddon/curl/packages/DOS/common.dj, revision 1.1
1.1 ! misho 1: #***************************************************************************
! 2: # _ _ ____ _
! 3: # Project ___| | | | _ \| |
! 4: # / __| | | | |_) | |
! 5: # | (__| |_| | _ <| |___
! 6: # \___|\___/|_| \_\_____|
! 7: #
! 8: # Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
! 9: #
! 10: # This software is licensed as described in the file COPYING, which
! 11: # you should have received as part of this distribution. The terms
! 12: # are also available at https://curl.haxx.se/docs/copyright.html.
! 13: #
! 14: # You may opt to use, copy, modify, merge, publish, distribute and/or sell
! 15: # copies of the Software, and permit persons to whom the Software is
! 16: # furnished to do so, under the terms of the COPYING file.
! 17: #
! 18: # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
! 19: # KIND, either express or implied.
! 20: #
! 21: ###########################################################################
! 22: #
! 23: # Common defines for curl (djgpp/Watt-32)
! 24: #
! 25: # Assumes you've unpacked curl with long-file names
! 26: # I.e use "set LFN=y" before untaring on Win9x/XP.
! 27: # Requires sed, yacc, rm and the usual stuff.
! 28: #
! 29: # Define TOPDIR before including this file.
! 30:
! 31: .SUFFIXES: .exe .y
! 32:
! 33: MAKEFILE = Makefile.dj
! 34: OBJ_DIR = djgpp
! 35:
! 36: #
! 37: # Find out if using a Unix-like shell or a DOS command interpreter
! 38: #
! 39: ifneq ($(findstring COMMAND.COM,$(SHELL)),COMMAND.COM)
! 40: ifneq ($(findstring CMD.EXE,$(SHELL)),CMD.EXE)
! 41: ifneq ($(findstring 4DOS.COM,$(SHELL)),4DOS.COM)
! 42: IS_UNIX_SHELL = 1
! 43: endif
! 44: endif
! 45: endif
! 46:
! 47: #
! 48: # Define shell dependent commands and vars
! 49: #
! 50: ifeq ($(IS_UNIX_SHELL),1)
! 51: COPY = cp -f
! 52: DELETE = rm -f
! 53: MKDIR = mkdir
! 54: RMDIR = rm -f -r
! 55: DS = /
! 56: else
! 57: COPY = copy
! 58: DELETE = del
! 59: MKDIR = mkdir
! 60: RMDIR = rmdir
! 61: DS = \$(NOTHING)
! 62: endif
! 63:
! 64: #
! 65: # OpenSSL is available from www.openssl.org and builds okay
! 66: # with djgpp/Watt-32. Set to 0 if you don't need https URLs
! 67: # (reduces curl.exe with approx 700 kB)
! 68: #
! 69: USE_SSL = 0
! 70:
! 71: #
! 72: # Use zlib for contents encoding
! 73: #
! 74: USE_ZLIB = 0
! 75:
! 76: #
! 77: # Use libidn for international domain names
! 78: #
! 79: USE_IDNA = 0
! 80:
! 81: #
! 82: # Use Watt-32 IPv6 stack (only IPv6 name resolution working at the moment)
! 83: #
! 84: USE_IPV6 = 0
! 85:
! 86: #
! 87: # Use C-Ares resolver library
! 88: #
! 89: USE_ARES = 0
! 90:
! 91: #
! 92: # Enable debug code in libcurl/curl
! 93: #
! 94: USE_DEBUG = 0
! 95:
! 96: #
! 97: # Enable memory tracking code in libcurl/curl
! 98: #
! 99: USE_CURLDEBUG = 0
! 100:
! 101: default: all
! 102:
! 103: #
! 104: # Root directory for Waterloo tcp/ip etc. Change to suite.
! 105: # WATT_ROOT should be set during Watt-32 install.
! 106: #
! 107: WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
! 108: OPENSSL_ROOT = e:/net/openssl.099
! 109: ZLIB_ROOT = $(DJDIR)/contrib/zlib
! 110: LIBIDN_ROOT = $(TOPDIR)/../IDN/libidn
! 111: ARES_ROOT = $(TOPDIR)/ares
! 112:
! 113: CC = gcc
! 114: YACC = bison -y
! 115:
! 116: CFLAGS = -g -O2 -I. -I$(TOPDIR)/include -I$(TOPDIR)/lib \
! 117: -I$(WATT32_ROOT)/inc -Wall -DHAVE_CONFIG_H
! 118:
! 119: ifeq ($(USE_SSL),1)
! 120: CFLAGS += -DUSE_OPENSSL -I$(OPENSSL_ROOT)
! 121: endif
! 122:
! 123: ifeq ($(USE_ZLIB),1)
! 124: CFLAGS += -DUSE_ZLIB -I$(ZLIB_ROOT)
! 125: endif
! 126:
! 127: ifeq ($(USE_IPV6),1)
! 128: CFLAGS += -DENABLE_IPV6
! 129: endif
! 130:
! 131: ifeq ($(USE_ARES),1)
! 132: CFLAGS += -DUSE_ARES -I$(ARES_ROOT)
! 133: endif
! 134:
! 135: ifeq ($(USE_IDNA),1)
! 136: CFLAGS += -DHAVE_LIBIDN -DHAVE_IDN_FREE_H -DHAVE_IDN_FREE -DHAVE_TLD_H \
! 137: -DHAVE_TLD_STRERROR -I$(LIBIDN_ROOT)/lib
! 138: endif
! 139:
! 140: ifeq ($(USE_DEBUG),1)
! 141: CFLAGS += -DDEBUG=1 -DDEBUGBUILD
! 142: endif
! 143:
! 144: ifeq ($(USE_CURLDEBUG),1)
! 145: CFLAGS += -DCURLDEBUG
! 146: endif
! 147:
! 148: $(OBJ_DIR):
! 149: $(MKDIR) $(OBJ_DIR)
! 150:
! 151: $(OBJ_DIR)/%.o: %.c
! 152: $(CC) $(CFLAGS) -o $@ -c $<
! 153: @echo
! 154:
! 155: depend: $(DEPEND_PREREQ) $(MAKEFILE)
! 156: $(CC) -MM $(CFLAGS) $(CSOURCES) | \
! 157: sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/$$(OBJ_DIR)\/\1/' > depend.dj
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>