| [238] | 1 | # makefile - build all fm/2 components
|
|---|
| [74] | 2 | # $Id: makefile 601 2007-04-03 06:28:30Z jbs $
|
|---|
| [2] | 3 |
|
|---|
| [414] | 4 | # Copyright (c) 1993-98 M. Kimes
|
|---|
| 5 | # Copyright (c) 2002, 2006 Steven H. Levine
|
|---|
| 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
|
|---|
| [74] | 14 |
|
|---|
| 15 | # Environment:
|
|---|
| 16 |
|
|---|
| [310] | 17 | # DEBUG 0 = release build, 1 = debug build
|
|---|
| [74] | 18 |
|
|---|
| [15] | 19 | BASE = fm3
|
|---|
| [2] | 20 |
|
|---|
| [238] | 21 | !include makefile_pre.mk
|
|---|
| [2] | 22 |
|
|---|
| [589] | 23 | all: dll $(BASE) allexe
|
|---|
| 24 |
|
|---|
| [594] | 25 | dist: all lxlite wpi
|
|---|
| 26 |
|
|---|
| [238] | 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:
|
|---|
| [15] | 35 | cd dll
|
|---|
| [211] | 36 | $(MAKE) /nologo /$(MAKEFLAGS)
|
|---|
| [15] | 37 | cd ..
|
|---|
| [2] | 38 |
|
|---|
| [238] | 39 | $(BASE): $(BASE).exe $(BASE).res
|
|---|
| [2] | 40 |
|
|---|
| [554] | 41 | $(BASE).res: $(BASE).rc icons\$(BASE).ico bitmaps\*.bmp
|
|---|
| [2] | 42 |
|
|---|
| [554] | 43 | $(BASE).obj: $(BASE).c dll\version.h
|
|---|
| [2] | 44 |
|
|---|
| [238] | 45 | # make EXE compenents
|
|---|
| [2] | 46 |
|
|---|
| [310] | 47 | allexe: *.mak
|
|---|
| 48 | !$(MAKE) /NOLOGO /f $? /$(MAKEFLAGS)
|
|---|
| [238] | 49 |
|
|---|
| [579] | 50 | wpi:
|
|---|
| 51 | cd warpin
|
|---|
| [601] | 52 | $(MAKE) /NOLOGO /$(MAKEFLAGS)
|
|---|
| [579] | 53 | cd ..
|
|---|
| 54 |
|
|---|
| [465] | 55 | # makefile_post.mk contains lxlite target for $(BASE).exe
|
|---|
| 56 | # Apply to each *.mak for other exes
|
|---|
| [310] | 57 | lxlite:: *.mak
|
|---|
| 58 | !$(MAKE) /NOLOGO /f $? /$(MAKEFLAGS) lxlite
|
|---|
| 59 |
|
|---|
| [465] | 60 | # Apply to dlls
|
|---|
| 61 | lxlite::
|
|---|
| 62 | cd dll
|
|---|
| 63 | $(MAKE) /nologo /$(MAKEFLAGS) lxlite
|
|---|
| 64 | cd ..
|
|---|
| 65 |
|
|---|
| [147] | 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 |
|
|---|
| [589] | 82 | distclean: clean
|
|---|
| 83 | cd warpin
|
|---|
| 84 | $(MAKE) /nologo $(MAKEFLAGS) distclean
|
|---|
| 85 | cd ..
|
|---|
| 86 |
|
|---|
| [238] | 87 | !include makefile_post.mk
|
|---|
| [15] | 88 |
|
|---|
| 89 | # The end
|
|---|