makefile.dj 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 2003 - 2022, Gisle Vanem <gvanem@yahoo.no>.
  9. # Copyright (C) 2003 - 2020, 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.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. # SPDX-License-Identifier: curl
  23. #
  24. #***************************************************************************
  25. #
  26. # Adapted for djgpp2 / Watt-32 / DOS
  27. #
  28. DEPEND_PREREQ = curl_config.h
  29. VPATH = vtls vauth vquic vssh
  30. TOPDIR = ..
  31. include ../packages/DOS/common.dj
  32. include Makefile.inc
  33. CFLAGS += -DBUILDING_LIBCURL
  34. SOURCES = $(sort $(CSOURCES))
  35. OBJECTS = $(addprefix $(OBJ_DIR)/, $(notdir $(SOURCES:.c=.o)))
  36. CURL_LIB = libcurl.a
  37. all: $(OBJ_DIR) curl_config.h $(CURL_LIB)
  38. $(CURL_LIB): $(OBJECTS)
  39. ar rs $@ $?
  40. curl_config.h: config-dos.h
  41. $(COPY) $^ $@
  42. # clean generated files
  43. #
  44. genclean:
  45. - $(DELETE) curl_config.h
  46. # clean object files and subdir
  47. #
  48. objclean: genclean
  49. - $(DELETE) $(OBJ_DIR)$(DS)*.o
  50. - $(RMDIR) $(OBJ_DIR)
  51. # clean without removing built library
  52. #
  53. clean: objclean
  54. - $(DELETE) depend.dj
  55. # clean everything
  56. #
  57. realclean vclean: clean
  58. - $(DELETE) $(CURL_LIB)
  59. -include depend.dj