home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / vxtech07.zip / RXAWAR / FUNCS / MAKEFILE.WAT < prev    next >
Text File  |  1994-07-16  |  1KB  |  46 lines

  1.  
  2. exename  = lower
  3.  
  4. objs = main.obj lower.obj runmacro.obj
  5.  
  6. !include ..\makewatc.inc
  7.  
  8. exports = 
  9. libs    = rexx.lib os2386.lib
  10.  
  11. $(obj_dir)\$(exename).exe : $(objs) $(obj_dir)\$(exename).lnk
  12.     @cd $(obj_dir)
  13.     $(std_link) @$(exename)
  14.     copy $(exename).exe ..
  15. !ifdef DEBUG
  16.     @copy /b $(exename).exe + $(exename).sym $(exename).exe 2>&1 >nul
  17. !endif
  18.     @cd $(main_dir)
  19.  
  20. #$(obj_dir)\$(exename).res : $(rc_dir)\$(exename).rc
  21. #    @cd $(rc_dir)
  22. #    rc -r $[*.rc $(obj_dir)\$[&.res
  23. #    @cd $(main_dir)
  24.  
  25. $(obj_dir)\$(exename).lnk : makefile.wat $(locallibs)
  26.     %create $@
  27.     @%append $@ option osname='OS/2 32-bit'
  28. #    @%append $@ libpath %WATCOM%\lib386
  29. #    @%append $@ libpath %WATCOM%\lib386\os2
  30. #    @%append $@ libpath %TOOLKIT%\os2lib
  31. !ifdef PM
  32.     @%append $@ format os2 lx pm
  33. !else
  34.     @%append $@ format os2 lx
  35. !endif
  36.     @%append $@ option Quiet,Map,CaseExact,ManyAutoData
  37.     @%append $@ option symfile=$(exename).sym
  38.     @%append $@ name $(exename)
  39.     @%append $@ debug all
  40.     @for %i in ($(objs)) do @%append $^@ file %i
  41.     @for %i in ($(locallibs)) do @%append $^@ library %i
  42.     @for %i in ($(libs)) do @%append $^@ library %i
  43.     @for %i in ($(exports)) do @%append $^@ export %i
  44.  
  45.  
  46.