view makefile.vac @ 2264:5c981407b0f3

GTK4: Add experimental support for GTK4... This is in progress and doesn't compile yet. GTK4 support will likely be less full than GTK3 due to architectural decisions by the GTK team. Certain features have been removed with no replacements, such as status icon support. Additionally all of the thread safety has been removed and everything MUST run on the main thread. I will likely implement a similar solution to what I did on MacOS where threads will call into the main thread to do API calls, passing the arguments between threads. Copied from GTK3 removing all existing now dead thread safety, all deprecated code and everything supporting earlier versions of GTK3. GTK4 is not available in any mainstream distributions yet... hoping to have it at least functional by the time there are any.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 29 Jan 2021 10:57:12 +0000
parents 76b24619f6fa
children 1660b4ecb92f
line wrap: on
line source

.SUFFIXES: .c .obj

!if ![cmd /c os2\svnrev.cmd]
!include SVN.REV
!endif        

.all: \
    .\dw.dll \
    .\dwcompat.dll \
    .\dwtest.exe

.c.obj:
  icc.exe  /DOS2 /DTCPV40HDRS /DBUILD_DLL /DUNICODE /DVER_REV=$(VERREV) /I. /Tm+ /Tdc /Ss /V"Dynamic Windows Compatibility" /Ti /Gm /Gd- /G5 /Ge- /C /W3 %s

.\dw.dll: \
    .\os2\dw.obj
    @echo " Link::Linker "
    icc.exe @<<
    /B" /NOE /de /ST:32768 /nologo /li"
    /Fe"dw.dll" os2\dw.def
    .\dw.obj
   so32dll.lib
   tcp32dll.lib
   libuls.lib
   libconv.lib
   unikbd.lib
<<
  IMPLIB DW.LIB OS2\DW.DEF
  copy dw.lib lib\dw.lib
  copy dw.dll dll\dw.dll

.\dwcompat.dll: \
    .\os2\dirent.obj \
    .\dwcompat.obj
    @echo " Link::Linker "
    icc.exe @<<
    /B" /NOE /de /ST:32768 /nologo /li"
    /Fe"dwcompat.dll" os2\dwcompat.def
    .\dirent.obj
    .\dwcompat.obj
   so32dll.lib
   tcp32dll.lib
<<
  IMPLIB DWCOMPAT.LIB OS2\DWCOMPAT.DEF
  copy dwcompat.lib lib\dwcompat.lib
  copy dwcompat.dll dll\dwcompat.dll

dwtest.obj:
	icc /Ti /DOS2 /DTCPV40HDRS /Sp1 /I. /Sm /Ss /Q /Gm /Gt /C dwtest.c
dwtest.exe:  dwtest.obj
	icc @<<
	 /B" /DE /optfunc /pm:pm"
	 /Fedwtest.exe
	 lib\dw.lib lib\dwcompat.lib
	 dwtest.obj
	 os2\dwtest.def
<<
clean :
        @if exist *.obj del *.obj
        @if exist *.map del *.map
        @if exist *.lib del *.lib
        @if exist *.dll del *.dll
        @if exist *.exe del *.exe
        @if exist *.REV del *.REV