1 | # makefile - build all fm/2 components
|
---|
2 | # $Id: makefile 601 2007-04-03 06:28:30Z jbs $
|
---|
3 |
|
---|
4 | # Copyright (c) 1993-98 M. Kimes
|
---|
5 | # Copyright (c) 2002, 2006 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 |
|
---|
15 | # Environment:
|
---|
16 |
|
---|
17 | # DEBUG 0 = release build, 1 = debug build
|
---|
18 |
|
---|
19 | BASE = fm3
|
---|
20 |
|
---|
21 | !include makefile_pre.mk
|
---|
22 |
|
---|
23 | all: dll $(BASE) allexe
|
---|
24 |
|
---|
25 | dist: all lxlite wpi
|
---|
26 |
|
---|
27 | # Only update resources
|
---|
28 | res:
|
---|
29 | @echo Updating resources only
|
---|
30 | $(MAKE) /nologo /$(MAKEFLAGS) MAKERES=1
|
---|
31 |
|
---|
32 | # make DLL components
|
---|
33 |
|
---|
34 | dll:
|
---|
35 | cd dll
|
---|
36 | $(MAKE) /nologo /$(MAKEFLAGS)
|
---|
37 | cd ..
|
---|
38 |
|
---|
39 | $(BASE): $(BASE).exe $(BASE).res
|
---|
40 |
|
---|
41 | $(BASE).res: $(BASE).rc icons\$(BASE).ico bitmaps\*.bmp
|
---|
42 |
|
---|
43 | $(BASE).obj: $(BASE).c dll\version.h
|
---|
44 |
|
---|
45 | # make EXE compenents
|
---|
46 |
|
---|
47 | allexe: *.mak
|
---|
48 | !$(MAKE) /NOLOGO /f $? /$(MAKEFLAGS)
|
---|
49 |
|
---|
50 | wpi:
|
---|
51 | cd warpin
|
---|
52 | $(MAKE) /NOLOGO /$(MAKEFLAGS)
|
---|
53 | cd ..
|
---|
54 |
|
---|
55 | # makefile_post.mk contains lxlite target for $(BASE).exe
|
---|
56 | # Apply to each *.mak for other exes
|
---|
57 | lxlite:: *.mak
|
---|
58 | !$(MAKE) /NOLOGO /f $? /$(MAKEFLAGS) lxlite
|
---|
59 |
|
---|
60 | # Apply to dlls
|
---|
61 | lxlite::
|
---|
62 | cd dll
|
---|
63 | $(MAKE) /nologo /$(MAKEFLAGS) lxlite
|
---|
64 | cd ..
|
---|
65 |
|
---|
66 | cleanobj:
|
---|
67 | cd dll
|
---|
68 | $(MAKE) /nologo $(MAKEFLAGS) cleanobj
|
---|
69 | cd ..
|
---|
70 | -del *.obj
|
---|
71 |
|
---|
72 | clean:
|
---|
73 | cd dll
|
---|
74 | $(MAKE) /nologo $(MAKEFLAGS) clean
|
---|
75 | cd ..
|
---|
76 | -del *.exe
|
---|
77 | -del *.map
|
---|
78 | -del *.obj
|
---|
79 | -del *.res
|
---|
80 | -del fm3res.str
|
---|
81 |
|
---|
82 | distclean: clean
|
---|
83 | cd warpin
|
---|
84 | $(MAKE) /nologo $(MAKEFLAGS) distclean
|
---|
85 | cd ..
|
---|
86 |
|
---|
87 | !include makefile_post.mk
|
---|
88 |
|
---|
89 | # The end
|
---|