source: trunk/src/makefile

Last change on this file was 291, checked in by pr, 20 years ago

Fix XDOC

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1#
2# Makefile for the src\ directory.
3#
4
5#
6# SUBTARGET is defined by the main makefile to be one of:
7#
8# -- all: this will invoke "nmake all" on the subdirs.
9#
10# -- dep: this will invoke "nmake dep" on the subdirs.
11#
12
13# Say hello to yourself.
14!if [@echo +++++ Entering $(MAKEDIR)]
15!endif
16
17# store current directory so we can change back later
18CURRENT_DIR = $(MAKEDIR)
19
20SUBDIRS = \
21cppbase \
22helpers \
23libbz2
24
25# "all" gets called from ..\makefile when either
26# "nmake all" or "nmake really_all" is running.
27# In that case, SUBTARGET is "all" also so we
28# run "nmake all" on the subdirs.
29all: $(SUBDIRS)
30 @echo ----- Leaving $(MAKEDIR)
31
32# "dep" gets called from ..\makefile when
33# "nmake dep" is running.
34# In that case, SUBTARGET is "dep" also so we
35# run "nmake dep" on the subdirs.
36dep: $(SUBDIRS)
37 @echo ----- Leaving $(MAKEDIR)
38
39!ifdef RUNDEPONLY
40SUBMAKESTRING = "NOINCLUDEDEPEND=1"
41!else
42SUBMAKESTRING = "OUTPUTDIR_HELPERS=$(OUTPUTDIR_HELPERS)" "CC_HELPERS=$(CC_HELPERS)"
43!endif
44
45PARENTDIRNAME = src
46
47cppbase:
48 @echo $(MAKEDIR)\makefile [$@]: Going for subdir $(PARENTDIRNAME)\$@
49 @cd $@
50 @$(MAKE) -nologo $(SUBTARGET) $(SUBMAKESTRING) "MAINMAKERUNNING=YES"
51 @cd $(CURRENT_DIR)
52
53libbz2:
54 @echo $(MAKEDIR)\makefile [$@]: Going for subdir $(PARENTDIRNAME)\$@
55 @cd $@
56 @$(MAKE) -nologo $(SUBTARGET) $(SUBMAKESTRING) "MAINMAKERUNNING=YES"
57 @cd $(CURRENT_DIR)
58
59helpers:
60 @echo $(MAKEDIR)\makefile [$@]: Going for subdir $(PARENTDIRNAME)\$@
61 @cd $@
62 @$(MAKE) -nologo $(SUBTARGET) $(SUBMAKESTRING) "MAINMAKERUNNING=YES"
63 @cd $(CURRENT_DIR)
64
65jpeg:
66 @echo $(MAKEDIR)\makefile [$@]: Going for subdir $(PARENTDIRNAME)\$@
67 @cd $@
68 @$(MAKE) -nologo $(SUBTARGET) $(SUBMAKESTRING) "MAINMAKERUNNING=YES"
69 @cd $(CURRENT_DIR)
70
71# special targets to build only a subset of the helpers
72
73cp:
74 @echo $(MAKEDIR)\makefile [$@]: Going for subdir $(PARENTDIRNAME)\helpers (cp)
75 @cd helpers
76 @$(MAKE) -nologo cp $(SUBMAKESTRING) "MAINMAKERUNNING=YES"
77 @cd $(CURRENT_DIR)
78
79
Note: See TracBrowser for help on using the repository browser.