You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.4KB

  1. #
  2. # Common plugin makefile for "msvc" / win32 target
  3. #
  4. # Also see plugin_common.mk
  5. #
  6. #
  7. # In order to extend existing targets, add
  8. # your targets to the
  9. #
  10. # HELP_RULES - extends "help" target
  11. # INSTALL_RULES - extends "install" target
  12. # BIN_RULES - extends "bin" target
  13. # BIN_POST_EVAL - evaluated after building "bin" target
  14. # CLEAN_RULES - extends "clean" target
  15. # REALCLEAN_RULES - extends "realclean" target
  16. #
  17. # variables
  18. #
  19. #
  20. #
  21. # Determine TARGET filename if only TARGET_BASENAME name is known
  22. #
  23. ifeq ("$(TARGET)","")
  24. TARGET=$(TARGET_BASENAME).dll
  25. endif
  26. #
  27. CPPFLAGS += -I"$(VSVR_BASE_DIR)/dep/yac" -DWIN32 $(EXTRAFLAGS)
  28. # -DYAC_FORCE_NO_TLS
  29. EXTRALIBS += -DLL -MAP
  30. #
  31. # Build plugin library
  32. #
  33. .PHONY: bin
  34. bin: $(BIN_RULES) $(ALL_OBJ)
  35. $(LD) $(LDFLAGS_SIZE) -OUT:$(TARGET) $(ALL_OBJ) $(EXTRALIBS)
  36. @echo "Build finished at `date +%H:%M`."
  37. @ls -l $(TARGET)
  38. $(call BIN_POST_FXN)
  39. # $(foreach postfxn,$(BIN_POST_FXNS),$(call $(postfxn)))
  40. # @echo "done"
  41. .cpp.o:
  42. $(CC) $(CPPFLAGS) $(OPTFLAGS_PLUGIN) -c $< -Fo"$@"
  43. .cc.o:
  44. $(CC) $(CPPFLAGS) $(OPTFLAGS_PLUGIN) -c $< -Fo"$@"
  45. .c.o:
  46. $(CC) $(CPPFLAGS) $(OPTFLAGS_PLUGIN) -c $< -Fo"$@"
  47. #
  48. # Make clean and remove backup files
  49. #
  50. .PHONY: realclean
  51. realclean: $(REALCLEAN_RULES) clean
  52. $(RM) `$(FIND) . -name \*\~` $(TARGET) *.exp *.lib *.plg *.ncb *.map *.manifest
  53. #
  54. # Remove object files and targets.
  55. #
  56. .PHONY: clean
  57. clean: $(CLEAN_RULES)
  58. @echo "[...] cleaning up.."
  59. $(RM) $(ALL_OBJ) $(TARGET)