Changeset 691 for trunk/makefile_post.mk


Ignore:
Timestamp:
Jun 16, 2007, 3:36:42 AM (18 years ago)
Author:
Steven Levine
Message:

Commit primary makefiles to OpenWatcom

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/makefile_post.mk

    r310 r691  
    44# 16 Aug 05 SHL Clean up
    55# 16 Apr 06 SHL Add lxlite target
     6# 02 Jun 07 SHL Convert to OpenWatcom
    67
    78!ifndef MAKERES
    89
    9 $(BASE).exe: $(BASE).obj $(BASE).res $(BASE).def
    10   @$(LINK) @<<$(BASE).lrf
    11   $(LFLAGS)
    12   $(BASE).obj
    13   dll\fm3dll.lib
    14   os2386.lib
    15   $(BASE).def
    16 <<
    17   @rem type $(BASE).lrf
    18   $(RC) -x2 $(BASE).res $@
     10# Build executable
     11# Common parameters go in .lrf
     12# Executable specific paramters go in .def
     13
     14$(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit
     15  @$(LINK) @$(BASE).lrf @$(BASE).def
     16  $(RC) $(RCFLAGS2) $(BASE).res $@
    1917  bldlevel $@
     18
     19$(BASE).lrf: $(__MAKEFILES__) .explicit
     20   @%write $^@ $(LFLAGS)
     21   @%append $^@ name $(BASE)
     22   @%append $^@ file $(BASE).obj
     23!ifdef %EXCEPTQ
     24    @%append $^@ file exceptq.lib
     25!endif
     26   @%append $^@ library dll\fm3dll.lib
     27   @%append $^@ library os2386.lib
    2028
    2129!else
    2230
    23 $(BASE).exe: $(BASE).res
     31# Replace resources
     32$(BASE).exe: $(BASE).res .explicit
    2433  @if not exist $@ echo $@ missing
    2534  lxlite $@ /x+ /b-
    2635  lxlite $@ /c:minstub
    27   $(RC) -x2 $(BASE).res $@
     36  $(RC) $(RCFLAGS2) $(BASE).res $@
    2837  lxlite $@ /x- /b-
    2938  bldlevel $@
     
    3140!endif
    3241
    33 lxlite:: $(BASE).exe
     42lxlite:: $(BASE).exe .symbolic .explicit
    3443  lxlite /x- /b- $?
    3544
    36 clean:
     45clean:: .symbolic .explicit
    3746  -del $(BASE).exe
    3847  -del $(BASE).lrf
Note: See TracChangeset for help on using the changeset viewer.