makefile.dj 888 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Adapted for djgpp2 / Watt-32 / DOS by
  3. # Gisle Vanem <gvanem@broadpark.no>
  4. #
  5. DEPEND_PREREQ = curl_config.h
  6. TOPDIR = ..
  7. include ../packages/DOS/common.dj
  8. include Makefile.inc
  9. OBJECTS := $(patsubst %.c,$(OBJ_DIR)/%.o,$(strip $(CSOURCES)))
  10. CURL_LIB = libcurl.a
  11. # NOTE: if ../include/curl/curlbuild.h is missing, you're probably building
  12. # this from a git checkout and then you need to run buildconf.bat first.
  13. all: $(OBJ_DIR) curl_config.h $(CURL_LIB)
  14. $(CURL_LIB): $(OBJECTS)
  15. ar rs $@ $?
  16. curl_config.h: config-dos.h
  17. $(COPY) $^ $@
  18. # clean generated files
  19. #
  20. genclean:
  21. - $(DELETE) curl_config.h
  22. # clean object files and subdir
  23. #
  24. objclean: genclean
  25. - $(DELETE) $(OBJ_DIR)$(DS)*.o
  26. - $(RMDIR) $(OBJ_DIR)
  27. # clean without removing built library
  28. #
  29. clean: objclean
  30. - $(DELETE) depend.dj
  31. # clean everything
  32. #
  33. realclean vclean: clean
  34. - $(DELETE) $(CURL_LIB)
  35. -include depend.dj