|
1 # This Source Code Form is subject to the terms of the Mozilla Public |
|
2 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
4 |
|
5 DEPTH = ../.. |
|
6 CORE_DEPTH = ../.. |
|
7 |
|
8 MODULE = coreconf |
|
9 |
|
10 CSRCS = \ |
|
11 cppsetup.c \ |
|
12 ifparser.c \ |
|
13 include.c \ |
|
14 main.c \ |
|
15 parse.c \ |
|
16 pr.c |
|
17 |
|
18 PROGRAM = mkdepend |
|
19 |
|
20 # Indicate that this directory builds build tools. |
|
21 INTERNAL_TOOLS = 1 |
|
22 |
|
23 |
|
24 include $(DEPTH)/coreconf/config.mk |
|
25 |
|
26 TARGETS = $(PROGRAM) |
|
27 ifeq (,$(filter-out OS2 WIN%,$(OS_TARGET))) |
|
28 DEFINES += -DNO_X11 |
|
29 else |
|
30 INSTALL = true |
|
31 endif |
|
32 |
|
33 ifdef NATIVE_CC |
|
34 CC=$(NATIVE_CC) |
|
35 endif |
|
36 |
|
37 ifdef NATIVE_FLAGS |
|
38 OS_CFLAGS=$(NATIVE_FLAGS) |
|
39 endif |
|
40 |
|
41 include $(DEPTH)/coreconf/rules.mk |
|
42 |
|
43 ifdef GNU_CC |
|
44 OPTIMIZER = -O3 |
|
45 else |
|
46 ifeq ($(OS_ARCH),SunOS) |
|
47 OPTIMIZER = -fast |
|
48 endif |
|
49 ifeq ($(OS_ARCH),WINNT) |
|
50 OPTIMIZER = -Ox |
|
51 endif |
|
52 endif |
|
53 |
|
54 DEFINES += -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".$(OBJ_SUFFIX)\" |
|
55 |
|
56 # Redefine MAKE_OBJDIR for just this directory |
|
57 define MAKE_OBJDIR |
|
58 if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); fi |
|
59 endef |
|
60 |