source: trunk/makefile@ 304

Last change on this file since 304 was 238, checked in by root, 20 years ago

Add bitmap dependencies
Add makeres support

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 977 bytes
RevLine 
[238]1# makefile - build all fm/2 components
[74]2# $Id: makefile 238 2005-08-09 05:11:38Z root $
[2]3
[147]4# 24 May 05 SHL Add clean and cleanobj target
[211]5# 16 Jun 05 SHL Workaround makeflags wierdness
[238]6# 18 Jul 05 SHL Add bitmap dependencies
7# 20 Jul 05 SHL Add makeres support
[74]8
9# Environment:
10
11# DEBUG 0 = release build, 1 = debug build
12
[15]13BASE = fm3
[2]14
[238]15!include makefile_pre.mk
[2]16
[238]17all: dll $(BASE) mak
[2]18
[238]19# Only update resources
20res:
21 @echo Updating resources only
22 $(MAKE) /nologo /$(MAKEFLAGS) MAKERES=1
23
24# make DLL components
25
26dll:
[15]27 cd dll
[211]28 $(MAKE) /nologo /$(MAKEFLAGS)
[15]29 cd ..
[2]30
[238]31$(BASE): $(BASE).exe $(BASE).res
[2]32
[238]33$(BASE).res: $(BASE).rc $(BASE).h bitmaps\*.bmp
[2]34
[238]35$(BASE).obj: $(BASE).c $(BASE).h dll\version.h
[2]36
[238]37# make EXE compenents
[2]38
[238]39mak: *.mak
40 !$(MAKE) /NOLOGO /$(MAKEFLAGS) /f $?
41
[147]42cleanobj:
43 cd dll
44 $(MAKE) /nologo $(MAKEFLAGS) cleanobj
45 cd ..
46 -del *.obj
47
48clean:
49 cd dll
50 $(MAKE) /nologo $(MAKEFLAGS) clean
51 cd ..
52 -del *.exe
53 -del *.map
54 -del *.obj
55 -del *.res
56 -del fm3res.str
57
[238]58!include makefile_post.mk
[15]59
60# The end
Note: See TracBrowser for help on using the repository browser.