2
0

makefile.dj 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 2003 - 2008, 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.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 vauth
  28. TOPDIR = ..
  29. include ../packages/DOS/common.dj
  30. include Makefile.inc
  31. CFLAGS += -DBUILDING_LIBCURL
  32. SOURCES = $(sort $(CSOURCES))
  33. OBJECTS = $(addprefix $(OBJ_DIR)/, $(notdir $(SOURCES:.c=.o)))
  34. CURL_LIB = libcurl.a
  35. all: $(OBJ_DIR) curl_config.h $(CURL_LIB)
  36. $(CURL_LIB): $(OBJECTS)
  37. ar rs $@ $?
  38. curl_config.h: config-dos.h
  39. $(COPY) $^ $@
  40. # clean generated files
  41. #
  42. genclean:
  43. - $(DELETE) curl_config.h
  44. # clean object files and subdir
  45. #
  46. objclean: genclean
  47. - $(DELETE) $(OBJ_DIR)$(DS)*.o
  48. - $(RMDIR) $(OBJ_DIR)
  49. # clean without removing built library
  50. #
  51. clean: objclean
  52. - $(DELETE) depend.dj
  53. # clean everything
  54. #
  55. realclean vclean: clean
  56. - $(DELETE) $(CURL_LIB)
  57. -include depend.dj