source: trunk/makefile@ 1567

Last change on this file since 1567 was 1516, checked in by John Small, 15 years ago

Ticket 424: Removed reference to obsolete fm3res.str from the primary makefile

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