source: trunk/makefile @ 698

Last change on this file since 698 was 698, checked in by John Small, 13 years ago
  • Made changes to enable WMAKE DIST
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1# makefile - build all fm/2 components
2# $Id: makefile 698 2007-06-17 10:57:32Z jbs $
3
4# Copyright (c) 1993-98 M. Kimes
5# Copyright (c) 2002, 2007 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
16# Environment:
17
18# DEBUG 0 = release build, 1 = debug build
19
20BASE = fm3
21
22!include makefile_pre.mk
23
24all: dll $(BASE) allexe .symbolic
25
26dist: all lxlite wpi .symbolic
27
28# Only update resources
29res: .symbolic
30  @echo Updating resources only
31  $(MAKE) $(__MAKEOPTS__) MAKERES=1
32
33# make DLL components
34
35dll: .symbolic
36  cd dll
37  $(MAKE) $(__MAKEOPTS__)
38  cd ..
39
40$(BASE): $(BASE).exe $(BASE).res .symbolic
41
42$(BASE).res: $(BASE).rc  icons\$(BASE).ico bitmaps\*.bmp
43
44$(BASE).obj: $(BASE).c dll\version.h
45
46# make EXE compenents
47
48allexe: *.mak .symbolic
49   @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__)
50
51wpi: .symbolic
52   cd warpin
53   $(MAKE) $(__MAKEOPTS__)
54   cd ..
55
56# makefile_post.mk contains lxlite target for $(BASE).exe
57# Apply to each *.mak for other exes
58lxlite:: *.mak .symbolic
59#  !$(MAKE) -f $? $(__MAKEOPTS__) lxlite
60   @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) lxlite
61
62# Apply to dlls
63lxlite:: .symbolic
64  cd dll
65  $(MAKE) $(__MAKEOPTS__) lxlite
66  cd ..
67
68cleanobj: .symbolic
69  cd dll
70  $(MAKE) $(__MAKEOPTS__) cleanobj
71  cd ..
72  -del *.obj
73
74clean:: .symbolic
75  cd dll
76  $(MAKE) $(__MAKEOPTS__) clean
77  cd ..
78  -del *.exe
79  -del *.map
80  -del *.obj
81  -del *.res
82  -del fm3res.str
83
84distclean: clean .symbolic
85  cd warpin
86  $(MAKE) $(__MAKEOPTS__) distclean
87  cd ..
88
89!include makefile_post.mk
90
91# The end
Note: See TracBrowser for help on using the repository browser.