- Timestamp:
- Feb 9, 2016, 12:57:42 PM (10 years ago)
- Location:
- branches/swt/testapp/apitest
- Files:
-
- 2 edited
-
GNUmakefile (modified) (8 diffs)
-
fc.mnu (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/swt/testapp/apitest/GNUmakefile
r22112 r22114 119 119 ODIN32SDK_LIBS+=gdi32.lib 120 120 ODIN32SDK_LIBS:=$(strip $(ODIN32SDK_LIBS)) 121 122 # Make running ApiTest use the built Odin version instead of the stock release 123 #ODIN32SDK_BEGINLIBPATH=..\..\out\os2.x86\debug\stage\bin 124 ODIN32SDK_BEGINLIBPATH=..\..\out\os2.x86\release\stage\bin 121 125 122 126 # This macro is invoked by defined but not yet implemented targets … … 326 330 327 331 332 # ! Note: Open Watcom v1.9 bugs (owcc front-end) 333 # ! The 'owcc' front-end has several problems passing flags to the compilers. 334 # ! For instance, it does not handle the '/' correctly when part of the path 335 # ! that specifies a source. The path is discarded and the source is looked for 336 # ! in the current directory. Also, using '-fr=<file>' has its problems. 337 # ! Because we want to use '/' for the most part, a small hack is done using 338 # ! the 'subst' macro on the source specification. 339 # ! At least the '/' bug with regard to the source specification seems to be 340 # ! fixed as of 'owcc' "Version 2.0 beta Apr 27 2014 22:48:31 (32-bit)". 341 342 328 343 # ------------------------------------------------------------- [ApiTestPm.exe] 329 344 # Build the Pm32 target executable (LX) 330 345 # ----------------------------------------------------------------------------- 331 $(out)/ApiTestPm.exe: $(s rc)/ApiTestPm.cpp$(out)/ApiTestPm.res $(module.def)346 $(out)/ApiTestPm.exe: $(subst /,\,$(src)/ApiTestPm.cpp) $(out)/ApiTestPm.res $(module.def) 332 347 @echo [$@] 333 348 $(cc) $(cc.flags.sys) $(cc.flags.pre) $(cc.flags.incdirs) $(cc.flags.libdirs) $(cc.flags.libs) $(cc.flags.post) $(cc.defines) $< -o $@ … … 347 362 # Build the Odin32 target executable (LX) 348 363 # ----------------------------------------------------------------------------- 349 $(out)/ApiTestOdin.exe: $(s rc)/ApiTestOdin.cpp$(out)/ApiTestOdin.ors $(module.def)364 $(out)/ApiTestOdin.exe: $(subst /,\,$(src)/ApiTestOdin.cpp) $(out)/ApiTestOdin.ors $(module.def) 350 365 @echo [$@] 351 366 $(cc) $(cc.flags.sys) $(cc.flags.pre) $(cc.flags.incdirs) $(cc.flags.libdirs) $(cc.flags.libs) $(cc.flags.post) $(cc.defines) $< -o $@ … … 375 390 # Build the Win32 target executable (PE) 376 391 # ----------------------------------------------------------------------------- 377 $(out)/ApiTestWin.exe: $(s rc)/ApiTestWin.cpp$(out)/ApiTestWin.res $(module.def)392 $(out)/ApiTestWin.exe: $(subst /,\,$(src)/ApiTestWin.cpp) $(out)/ApiTestWin.res $(module.def) 378 393 @echo [$@] 379 394 $(cc) $(cc.flags.sys) $(cc.flags.pre) $(cc.flags.incdirs) $(cc.flags.libdirs) $(cc.flags.libs) $(cc.flags.post) $(cc.defines) $< -o $@ $(module.def) … … 419 434 @echo [$@] 420 435 # $(out)\ApiTestOdin.exe 421 cmd /c $(out)\ApiTestOdin.exe 436 cmd /c "set BEGINLIBPATH=$(ODIN32SDK_BEGINLIBPATH)&$(out)\ApiTestOdin.exe" 437 438 439 # -------------------------------------------------------------- [run.win32.pe] 440 # Run the Win32 variant using pe 441 # ----------------------------------------------------------------------------- 442 # Quirk: *** If Main Window is not destroyed, pe hangs but pec terminates *** 443 # Needs more investigation. 444 # Also, for both pe and pec, the value for PostQuitMessage() is not present 445 # in the 'wParam' field of the message-structure at exit. (wParam is 0) 446 # ----------------------------------------------------------------------------- 447 run.win32.pe: owcc.build.win32 448 @echo [$@] 449 # pe $(out)\ApiTestWin.exe 450 cmd /c "set BEGINLIBPATH=$(ODIN32SDK_BEGINLIBPATH)&pe $(out)\ApiTestWin.exe" 422 451 423 452 … … 434 463 @echo [$@] 435 464 # pec $(out)\ApiTestWin.exe 436 cmd /c pec $(out)\ApiTestWin.exe465 cmd /c "set BEGINLIBPATH=$(ODIN32SDK_BEGINLIBPATH)&pec $(out)\ApiTestWin.exe" 437 466 438 467 … … 443 472 @echo [$@] 444 473 $(out)\ApiTestWin.exe 474 445 475 446 476 # ----------------------------------------------------------- [gen.tools.flags] … … 456 486 -gcc --help=common > .flags.gcc.common 457 487 488 458 489 # --------------------------------------------------------------------- [clean] 459 490 # Cleanup by removing the complete out-directory -
branches/swt/testapp/apitest/fc.mnu
r22112 r22114 43 43 W: Win32 variant (using pec.exe) 44 44 make run.win32.pec 45 .: Win32 variant (using pe.exe) 46 make run.win32.pe 45 47 -: -------------------------------- 46 48 K: Win32 variant (using win32k.sys)
Note:
See TracChangeset
for help on using the changeset viewer.
