Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Makefile 适合 MSVC2022 namke
  2. # 编译器和链接器
  3. CC = cl.exe
  4. LINK = link.exe
  5. # 编译和链接选项
  6. CFLAGS = /nologo /W3 /EHsc /Ox /DNDEBUG /I..\TypeLibs
  7. LDFLAGS = /nologo /DLL Gdi32.lib user32.lib Kernel32.lib
  8. # 源文件和资源文件
  9. SOURCE = ClearFill.cpp
  10. # 目标文件
  11. OBJECT = $(SOURCE:.cpp=.obj)
  12. # 最终输出
  13. TARGET = lycpg64.dll
  14. all: $(TARGET)
  15. $(TARGET): $(OBJECT) $(RESOURCES)
  16. $(LINK) $(LDFLAGS) /out:$@ $(OBJECT) $(RESOURCES)
  17. .cpp.obj:
  18. $(CC) $(CFLAGS) /c $<
  19. clean:
  20. del *.obj *.res *.dll VGCoreAuto.tlh VGCoreAuto.tli lycpg64.lib lycpg64.exp
  21. install:
  22. copy /y lycpg64.dll "C:\Program Files\Corel\CorelDRAW Graphics Suite 2020\Draw\Plugins64\lycpg64.cpg"
  23. .PHONY: all clean