source: trunk/makefile@ 1454

Last change on this file since 1454 was 1439, checked in by Gregg Young, 16 years ago

Changes to allow high mem loading of dll; Refactor .LONGNAME and .SUBJECT EA fetch to FetchCommonEAs. Add szFSType to FillInRecordFromFSA use to bypass EA scan and size formatting for tree container; Fix labels/FS type to work on scan on NOPRESCAN Drives; Fixed dbl directory names on restore of dir cnrs; (Tickets 47, 339, 363, 368, 369, 370)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
RevLine 
[238]1# makefile - build all fm/2 components
[74]2# $Id: makefile 1439 2009-07-12 21:57:04Z gyoung $
[2]3
[414]4# Copyright (c) 1993-98 M. Kimes
[936]5# Copyright (c) 2002, 2008 Steven H. Levine
[414]6
[147]7# 24 May 05 SHL Add clean and cleanobj target
[211]8# 16 Jun 05 SHL Workaround makeflags wierdness
[238]9# 18 Jul 05 SHL Add bitmap dependencies
10# 20 Jul 05 SHL Add makeres support
[310]11# 16 Apr 06 SHL Add lxlite target
[414]12# 31 Jul 06 SHL Tweak dependencies
[465]13# 26 Aug 06 SHL Add rest of lxlite support
[691]14# 14 Jun 07 SHL Convert to OpenWatcom
[703]15# 22 Jun 07 JBS Moved some macro-handling code to this
16# file from warpin\makefile because of some
17# differences in how Watcom handles macros.
[720]18# 04 Jul 07 SHL Pass DEBUG settings to sub-make
[936]19# 21 Jan 08 SHL Add *.lrf to clean target
[977]20# 22 Feb 08 JBS Suppress lxlite processing when DEBUG=1
[1133]21# 08 Jul 08 SHL Avoid extra work for wmake -a dist
22# 22 Jul 08 SHL Change from dll\dllsyms to dll\syms target for consistency
23# 22 Jul 08 SHL Pass FORTIFY options to subordinate makefiles
[1259]24# 25 Oct 08 SHL Sanitize DEBUG usage
[1281]25# 18 Nov 08 JBS Ticket 297: Various build improvements/corrections
[1343]26# 14 Dec 08 SHL Build fm3.sym
[1439]27# 12 Jul 09 GKY Allow FM/2 to load in high memory call exehdr /hi
[74]28
[1259]29# Environment - see makefile_pre.mk and dll\makefile
[74]30
[15]31BASE = fm3
[2]32
[723]33# Pass values for FM2_VER, FM2UTILS_VER and BUILD_FM2UTILS which
34# have been set on the command line, if any, on to the
35# warpin\makefile using the WARPIN_OPTS macro.
[703]36
[723]37!ifdef FM2_VER # if defined on wmake command, pass it
38WARPIN_OPTS = FM2_VER=$(FM2_VER)
[703]39!endif
40
[723]41!ifdef FM2UTILS_VER # if defined on wmake command, pass it
42WARPIN_OPTS = $(WARPIN_OPTS) FM2UTILS_VER=$(FM2UTILS_VER)
[703]43!endif
44
[723]45!ifdef BUILD_FM2UTILS # if defined on wmake command, pass it
46WARPIN_OPTS = $(WARPIN_OPTS) BUILD_FM2UTILS=$(BUILD_FM2UTILS)
[703]47!endif
48
[238]49!include makefile_pre.mk
[2]50
[691]51all: dll $(BASE) allexe .symbolic
[589]52
[1343]53syms: fm3.sym exesyms dllsyms .symbolic
[594]54
[1281]55dist: all syms lxlite wpi .symbolic
[983]56
[238]57# Only update resources
[691]58res: .symbolic
[238]59 @echo Updating resources only
[1281]60 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) MAKERES=1
[238]61
62# make DLL components
63
[691]64dll: .symbolic
[15]65 cd dll
[1281]66 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT)
[15]67 cd ..
[2]68
[983]69dllsyms: .symbolic
70 cd dll
[1281]71 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) syms
[983]72 cd ..
73
[691]74$(BASE): $(BASE).exe $(BASE).res .symbolic
[2]75
[1133]76$(BASE).res: $(BASE).rc icons\$(BASE).ico bitmaps\*.bmp .autodepend
[2]77
[1133]78$(BASE).obj: $(BASE).c dll\version.h .autodepend
[2]79
[1439]80highmem: .symbolic
81!ifdef HIMEM
82 cd dll
83 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) loadhigh
84 cd ..
85!else
86 @echo "HIMEM not set"
87!endif
88
[238]89# make EXE compenents
[2]90
[691]91allexe: *.mak .symbolic
[1281]92 @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT)
[238]93
[983]94# make SYM files
95
96exesyms: *.mak .symbolic
[1281]97 @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) sym
[983]98
99# make WPI files
100
[691]101wpi: .symbolic
[1259]102 cd warpin
[1281]103 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(WARPIN_OPTS)
[1259]104 cd ..
[579]105
[1133]106lxlite:: lxlitedll lxliteexe .symbolic
107
[465]108# makefile_post.mk contains lxlite target for $(BASE).exe
109# Apply to each *.mak for other exes
[1133]110lxliteexe: *.mak .symbolic
[1259]111!ifndef DEBUG
[1281]112 @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite
[970]113!endif
[310]114
[465]115# Apply to dlls
[1133]116lxlitedll: .symbolic
[1259]117!ifndef DEBUG
[465]118 cd dll
[1281]119 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite
[1259]120 cd ..
[970]121!endif
[465]122
[691]123cleanobj: .symbolic
[147]124 cd dll
[1281]125 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) cleanobj
[147]126 cd ..
127 -del *.obj
128
[691]129clean:: .symbolic
[147]130 cd dll
[1281]131 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) clean
[147]132 cd ..
133 -del *.exe
[936]134 -del *.lrf
[147]135 -del *.map
136 -del *.obj
137 -del *.res
[1054]138 -del *.sym
[147]139 -del fm3res.str
140
[691]141distclean: clean .symbolic
[589]142 cd warpin
[1281]143 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) distclean
[589]144 cd ..
145
[238]146!include makefile_post.mk
[15]147
148# The end
Note: See TracBrowser for help on using the repository browser.