makefile.dj 888 B

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