makefile.dj 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 2003 - 2008, Gisle Vanem <[email protected]>.
  9. # Copyright (C) 2003 - 2015, Daniel Stenberg, <[email protected]>, 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 = curl_config.h
  27. VPATH = vtls
  28. TOPDIR = ..
  29. include ../packages/DOS/common.dj
  30. include Makefile.inc
  31. SOURCES = $(sort $(CSOURCES))
  32. OBJECTS = $(addprefix $(OBJ_DIR)/, $(notdir $(SOURCES:.c=.o)))
  33. CURL_LIB = libcurl.a
  34. # NOTE: if ../include/curl/curlbuild.h is missing, you're probably building
  35. # this from a git checkout and then you need to run buildconf.bat first.
  36. all: $(OBJ_DIR) curl_config.h $(CURL_LIB)
  37. $(CURL_LIB): $(OBJECTS)
  38. ar rs $@ $?
  39. curl_config.h: config-dos.h
  40. $(COPY) $^ $@
  41. # clean generated files
  42. #
  43. genclean:
  44. - $(DELETE) curl_config.h
  45. # clean object files and subdir
  46. #
  47. objclean: genclean
  48. - $(DELETE) $(OBJ_DIR)$(DS)*.o
  49. - $(RMDIR) $(OBJ_DIR)
  50. # clean without removing built library
  51. #
  52. clean: objclean
  53. - $(DELETE) depend.dj
  54. # clean everything
  55. #
  56. realclean vclean: clean
  57. - $(DELETE) $(CURL_LIB)
  58. -include depend.dj