makefile.dj 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 2003 - 2007, Gisle Vanem <gvanem@yahoo.no>.
  9. # Copyright (C) 2003 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
  10. #
  11. # This software is licensed as described in the file COPYING, which
  12. # you should have received as part of this distribution. The terms
  13. # are also available at https://curl.haxx.se/docs/copyright.html.
  14. #
  15. # You may opt to use, copy, modify, merge, publish, distribute and/or sell
  16. # copies of the Software, and permit persons to whom the Software is
  17. # furnished to do so, under the terms of the COPYING file.
  18. #
  19. # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  20. # KIND, either express or implied.
  21. #
  22. #***************************************************************************
  23. #
  24. # Adapted for djgpp2 / Watt-32 / DOS
  25. #
  26. DEPEND_PREREQ = # tool_hugehelp.c
  27. TOPDIR = ..
  28. include ../packages/DOS/common.dj
  29. include Makefile.inc
  30. CSOURCES = $(CURL_CFILES)
  31. ifeq ($(USE_SSL),1)
  32. EX_LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a
  33. endif
  34. ifeq ($(USE_ARES),1)
  35. EX_LIBS += $(ARES_ROOT)/libcares.a
  36. endif
  37. ifeq ($(USE_ZLIB),1)
  38. EX_LIBS += $(ZLIB_ROOT)/libz.a
  39. CFLAGS += -DUSE_MANUAL
  40. endif
  41. ifeq ($(USE_IDNA),1)
  42. EX_LIBS += $(LIBIDN_ROOT)/lib/dj_obj/libidn.a -liconv
  43. endif
  44. EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a
  45. PROGRAM = curl.exe
  46. OBJECTS += $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o))
  47. all: $(OBJ_DIR) $(PROGRAM)
  48. @echo Welcome to curl
  49. $(PROGRAM): $(OBJECTS) ../lib/libcurl.a
  50. $(CC) -o $@ $^ $(LDFLAGS) $(EX_LIBS)
  51. #
  52. # groff 1.18+ requires "-P -c"
  53. #
  54. tool_hugehelp.c: ../docs/MANUAL ../docs/curl.1 mkhelp.pl
  55. groff -Tascii -man ../docs/curl.1 | \
  56. perl -w mkhelp.pl ../docs/MANUAL > $@
  57. # clean generated files
  58. #
  59. genclean:
  60. - $(DELETE) tool_hugehelp.c
  61. # clean object files and subdir
  62. #
  63. objclean: genclean
  64. - $(DELETE) $(OBJ_DIR)$(DS)*.o
  65. - $(RMDIR) $(OBJ_DIR)
  66. # clean without removing built program
  67. #
  68. clean: objclean
  69. - $(DELETE) depend.dj
  70. # clean everything
  71. #
  72. realclean vclean: clean
  73. - $(DELETE) $(PROGRAM)
  74. -include depend.dj