1
0

Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. CC = cl.exe
  2. LINK = link.exe
  3. CFLAGS = /nologo /W3 /EHsc /Ox /DNDEBUG /I..\TypeLibs
  4. LDFLAGS = /nologo /DLL Gdi32.lib user32.lib Kernel32.lib
  5. SOURCE = WelcomeScreen.cpp
  6. RC_FILE = WelcomeScreen.rc
  7. RESOURCES = WelcomeScreen.res
  8. OBJECT = $(SOURCE:.cpp=.obj)
  9. TARGET = lycpg64.dll
  10. all: $(TARGET)
  11. $(TARGET): $(OBJECT) $(RESOURCES)
  12. $(LINK) $(LDFLAGS) /out:$@ $(OBJECT) $(RESOURCES)
  13. $(RESOURCES): $(RC_FILE)
  14. rc.exe /fo$@ $(RC_FILE)
  15. .cpp.obj:
  16. $(CC) $(CFLAGS) /c $<
  17. clean:
  18. del *.obj *.res *.dll *.orig VGCoreAuto.tlh VGCoreAuto.tli lycpg64.lib lycpg64.exp
  19. install:
  20. copy /y lycpg64.dll "C:\Program Files\Corel\CorelDRAW Graphics Suite 2020\Draw\Plugins64\lycpg64.cpg"
  21. .PHONY: all clean