source: trunk/makefile

Last change on this file was 1897, checked in by Gregg Young, 3 years ago

Add FM4_NOWARN_DSPACE this is to quiet FM/4 by skipping disk space check; used for AN main frame backup solution

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
Line 
1# makefile - build all fm/2 components
2# $Id: makefile 1897 2022-08-14 19:14:53Z gyoung $
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# 21 Jun 11 GKY Add exceptq .xqs support
30# 21 Jun 11 GKY Make high memory builds the default (resources only for exes)
31# 04 Jul 11 GKY Make xqs files an explicit target so they will be rebuild if lost somehow.
32# 04 Jul 11 GKY Add eFTE backup files (*~) to clean target
33# 13 Aug 11 GKY Build xqs and sym files as part of dll and all targets
34# 25 Jan 20 SHL Add PMPRINTF support - PMPRINTF_OPT
35# 06 Aug 22 GKY Add FM4_NOWARN_DSPACE - FM4_NOWARN_DSPACE_OPT
36
37# Environment - see makefile_pre.mk and dll\makefile
38
39BASE = fm3
40
41# Pass values for FM2_VER, FM2UTILS_VER and BUILD_FM2UTILS which
42# have been set on the command line, if any, on to the
43# warpin\makefile using the WARPIN_OPTS macro.
44
45!ifdef FM2_VER # if defined on wmake command, pass it
46WARPIN_OPTS = FM2_VER=$(FM2_VER)
47!endif
48
49!ifdef FM2UTILS_VER # if defined on wmake command, pass it
50WARPIN_OPTS = $(WARPIN_OPTS) FM2UTILS_VER=$(FM2UTILS_VER)
51!endif
52
53!ifdef BUILD_FM2UTILS # if defined on wmake command, pass it
54WARPIN_OPTS = $(WARPIN_OPTS) BUILD_FM2UTILS=$(BUILD_FM2UTILS)
55!endif
56
57!include makefile_pre.mk
58
59all: dll $(BASE) allexe fm3.sym fm3.xqs exesyms .symbolic
60
61syms: fm3.sym fm3.xqs exesyms dllsyms .symbolic
62
63dist: all syms lxlite wpi .symbolic
64
65disth: $(BASE) allexe syms lxlite wpi .symbolic
66
67# Only update resources
68res: .symbolic
69 @echo Updating resources only
70 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) MAKERES=1
71
72# make DLL components
73
74dll: .symbolic
75 cd dll
76 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT) $(FM4_NOWARN_DSPACE)
77 cd ..
78
79dllsyms: .symbolic
80 cd dll
81 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT) $(FM4_NOWARN_DSPACE) syms
82 cd ..
83
84$(BASE): $(BASE).exe $(BASE).res .symbolic
85
86$(BASE).res: $(BASE).rc icons\$(BASE).ico bitmaps\*.bmp .autodepend
87
88$(BASE).obj: $(BASE).c dll\version.h .autodepend
89
90# make EXE compenents
91
92allexe: *.mak .symbolic
93 @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT) $(FM4_NOWARN_DSPACE)
94
95# make SYM files
96
97exesyms: *.mak .symbolic
98 @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT) $(FM4_NOWARN_DSPACE) sym
99
100# make WPI files
101
102wpi: .symbolic
103 cd warpin
104 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(WARPIN_OPTS)
105 cd ..
106
107lxlite:: lxlitedll lxliteexe .symbolic
108
109# makefile_post.mk contains lxlite target for $(BASE).exe
110# Apply to each *.mak for other exes
111lxliteexe: *.mak .symbolic
112!ifndef DEBUG
113 @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT) $(FM4_NOWARN_DSPACE) lxlite
114!endif
115
116# Apply to dlls
117lxlitedll: .symbolic
118!ifndef DEBUG
119 cd dll
120 $(MAKE) -h lxlite
121# FIXME to be gone
122# $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) $(PMPRINTF_OPT) $(FM4_NOWARN_DSPACE) lxlite
123 cd ..
124!endif
125
126cleanobj: .symbolic
127 cd dll
128 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) cleanobj
129 cd ..
130 -del *.obj
131
132clean:: .symbolic
133 cd dll
134 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) clean
135 cd ..
136 -del *.exe
137 -del *.lrf
138 -del *.map
139 -del *.obj
140 -del *.res
141 -del *.sym
142 -del *.xqs
143 -del *~
144
145distclean: clean .symbolic
146 cd warpin
147 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) distclean
148 cd ..
149
150!include makefile_post.mk
151
152# eof
Note: See TracBrowser for help on using the repository browser.