| 1 | # makefile - build all fm/2 components
 | 
|---|
| 2 | # $Id: makefile 465 2006-09-01 00:59:49Z root $
 | 
|---|
| 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 | # Only update resources
 | 
|---|
| 26 | res:
 | 
|---|
| 27 |   @echo Updating resources only
 | 
|---|
| 28 |   $(MAKE) /nologo /$(MAKEFLAGS) MAKERES=1
 | 
|---|
| 29 | 
 | 
|---|
| 30 | # make DLL components
 | 
|---|
| 31 | 
 | 
|---|
| 32 | dll:
 | 
|---|
| 33 |   cd dll
 | 
|---|
| 34 |   $(MAKE) /nologo /$(MAKEFLAGS)
 | 
|---|
| 35 |   cd ..
 | 
|---|
| 36 | 
 | 
|---|
| 37 | $(BASE): $(BASE).exe $(BASE).res
 | 
|---|
| 38 | 
 | 
|---|
| 39 | $(BASE).res: $(BASE).rc  $(BASE).h icons\$(BASE).ico bitmaps\*.bmp
 | 
|---|
| 40 | 
 | 
|---|
| 41 | $(BASE).obj: $(BASE).c $(BASE).h dll\version.h
 | 
|---|
| 42 | 
 | 
|---|
| 43 | # make EXE compenents
 | 
|---|
| 44 | 
 | 
|---|
| 45 | allexe: *.mak
 | 
|---|
| 46 |   !$(MAKE) /NOLOGO /f $? /$(MAKEFLAGS)
 | 
|---|
| 47 | 
 | 
|---|
| 48 | # makefile_post.mk contains lxlite target for $(BASE).exe
 | 
|---|
| 49 | # Apply to each *.mak for other exes
 | 
|---|
| 50 | lxlite:: *.mak
 | 
|---|
| 51 |   !$(MAKE) /NOLOGO /f $? /$(MAKEFLAGS) lxlite
 | 
|---|
| 52 | 
 | 
|---|
| 53 | # Apply to dlls
 | 
|---|
| 54 | lxlite::
 | 
|---|
| 55 |   cd dll
 | 
|---|
| 56 |   $(MAKE) /nologo /$(MAKEFLAGS) lxlite
 | 
|---|
| 57 |   cd ..
 | 
|---|
| 58 | 
 | 
|---|
| 59 | cleanobj:
 | 
|---|
| 60 |   cd dll
 | 
|---|
| 61 |   $(MAKE) /nologo $(MAKEFLAGS) cleanobj
 | 
|---|
| 62 |   cd ..
 | 
|---|
| 63 |   -del *.obj
 | 
|---|
| 64 | 
 | 
|---|
| 65 | clean:
 | 
|---|
| 66 |   cd dll
 | 
|---|
| 67 |   $(MAKE) /nologo $(MAKEFLAGS) clean
 | 
|---|
| 68 |   cd ..
 | 
|---|
| 69 |   -del *.exe
 | 
|---|
| 70 |   -del *.map
 | 
|---|
| 71 |   -del *.obj
 | 
|---|
| 72 |   -del *.res
 | 
|---|
| 73 |   -del fm3res.str
 | 
|---|
| 74 | 
 | 
|---|
| 75 | !include makefile_post.mk
 | 
|---|
| 76 | 
 | 
|---|
| 77 | # The end
 | 
|---|