bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / srclib / apr / build / NWGNUhead.inc
1 #
2 # Obtain the global build environment
3 #
4
5 include $(APR_WORK)\build\NWGNUenvironment.inc
6
7 #
8 # Define base targets and rules
9
10
11 TARGETS = libs nlms install clobber_libs clobber_nlms clean installdev
12
13 .PHONY : $(TARGETS) default all help $(NO_LICENSE_FILE)
14
15 # Here is where we will use the NO_LICENSE_FILE variable to see if we need to
16 # restart the make with it defined
17
18 ifdef NO_LICENSE_FILE
19
20 default: NO_LICENSE_FILE
21
22 all: NO_LICENSE_FILE
23
24 install :: NO_LICENSE_FILE
25
26 installdev :: NO_LICENSE_FILE
27
28 NO_LICENSE_FILE :
29         $(MAKE) $(MAKECMDGOALS) -f NWGNUmakefile RELEASE=$(RELEASE) DEST="$(INSTALL)" LM_LICENSE_FILE="$(METROWERKS)\license.dat"
30
31 else # LM_LICENSE_FILE must be defined so use the real targets
32
33 default: $(SUBDIRS) libs nlms
34
35 all: $(SUBDIRS) libs nlms install
36
37 $(TARGETS) :: $(SUBDIRS)
38
39 endif #NO_LICENSE_FILE check
40
41 help :
42         @echo targets for RELEASE=$(RELEASE):
43         @echo (default) . . . . libs nlms
44         @echo all . . . . . . . does everything (libs nlms install)
45         @echo libs. . . . . . . builds all libs
46         @echo nlms. . . . . . . builds all nlms
47         @echo install . . . . . builds libs and nlms and copies install files to
48         @echo                   "$(INSTALL)"
49         @echo installdev. . . . copies headers and files needed for development to
50         @echo                   "$(INSTALL)"
51         @echo clean . . . . . . deletes $(OBJDIR) dirs, *.err, and *.map
52         @echo clobber_all . . . deletes all possible output from the make
53         @echo clobber_install . deletes all files in $(INSTALL)
54         @$(CMD) echo.
55         @echo Multiple targets can be used on a single nmake command line -
56         @echo (i.e. $(MAKE) clean all)
57         @$(CMD) echo.
58         @echo You can also specify RELEASE=debug, RELEASE=noopt, or RELEASE=optimized
59         @echo The default is RELEASE=optimized
60
61 clobber_all :: clean clobber_install
62
63 clobber_install ::
64         -$(DELTREE) $(INSTALL) 2>NUL
65
66 #
67 # build recursive targets
68 #
69
70 $(SUBDIRS) : FORCE
71 ifneq "$(MAKECMDGOALS)" "clean"
72         $(CMD) echo.
73         @echo Building $(CURDIR)/$@
74 endif
75         $(MAKE) -C $@ $(MAKECMDGOALS) -f NWGNUmakefile RELEASE=$(RELEASE) DEST="$(INSTALL)" LM_LICENSE_FILE="$(LM_LICENSE_FILE)"
76         $(CMD) echo.
77
78 FORCE:
79
80 #
81 # Standard targets
82 #
83
84 clean :: $(SUBDIRS)
85         @echo Cleaning up $(CURDIR)
86         -$(DELTREE) $(OBJDIR) 2> NUL
87         $(CHK) *.err $(DEL) *.err
88         $(CHK) *.map $(DEL) *.map
89         $(CHK) *.d $(DEL) *.d
90         $(CHK) *.tmp $(DEL) *.tmp
91         $(CHK) xc.bat $(DEL) xc.bat
92         -$(DELTREE) $(OBJDIR) 2> NUL
93
94 $(OBJDIR) ::
95         $(CHKNOT) $(OBJDIR)\nul mkdir $(OBJDIR)
96