Major build system reorganization
[dyninst.git] / make.config
1 #
2 # $Log: make.config,v $
3 # Revision 1.12  1995/01/30 18:08:15  jcargill
4 # Major build system reorganization
5 #
6 # Revision 1.11  1994/09/30  19:21:07  rbi
7 # itty bitty typo fix
8 #
9 # Revision 1.10  1994/06/29  03:02:45  hollings
10 # AFS file paths
11 # added -fexternal-templates to CFLAGS
12 #
13 # Revision 1.9  1994/05/17  00:20:37  hollings
14 # added default baselined lib to VPATH
15 #
16 #
17 #
18
19 AS              = /bin/as
20 CC              = gcc
21 CC++            = g++
22 LEX             = flex
23 RANLIB          = ranlib
24 YFLAGS          = -d -y
25 YACC            = bison
26
27 ifeq ($(PLATFORM),sparc-sun-solaris2.3)
28 AS              = /usr/ccs/bin/as
29 RANLIB          = true
30 endif
31
32
33 # most "main" modules are only two levels deep, but we need to be able to
34 # change this for those that are deeper in the tree
35 ifndef TO_CORE
36 TO_CORE         = ../..
37 endif
38
39 # Default module compiler; modules which want $(CC) should redefine
40 # this, **NOT** CC
41
42 MODCC           = $(CC++)
43 MODCFLAGS       = $(CXXFLAGS)
44
45
46 .SUFFIXES:      .I
47
48 # VPATH         = ../src:$(TO_CORE)/../lib/$(PLATFORM):/p/paradyn/lib/$(PLATFORM)
49
50 IFLAGS          = -I. -I$(TO_CORE)
51
52 ASFLAGS         = -P $(IFLAGS)
53
54 COMMONWARNINGS  = -W -Wall -Wtraditional -Wshadow -Wpointer-arith       \
55                 -Wbad-function-cast -Wcast-qual -Wcast-align            \
56                 -Wwrite-strings -Wconversion -Wstrict-prototypes        \
57                 -Wmissing-prototypes -Wmissing-declarations             \
58                 -Wredundant-decls -Woverloaded-virtual
59
60 CFLAGS          = $(IFLAGS) -g -Wall -fexternal-templates
61 CXXFLAGS          = $(IFLAGS) -g -Wall -fexternal-templates
62
63 LIBDIR          = -L$(TO_CORE)/../lib/$(PLATFORM) \
64                   -L/p/paradyn/lib/$(PLATFORM) \
65                   -L/usr/psup/lib
66
67 ifdef USES_PVM
68 PVM_DIR         = /p/paradyn/packages/pvm3/lib/$(PLATFORM)
69 IFLAGS          += -I/p/paradyn/packages/pvm3/include
70 LIBDIR          += $(patsubst %,-L%,$(PVM_DIR))
71 VPATH           += $(PVM_DIR)
72 endif
73
74 ifdef USES_TCLTK
75 TCLTK_DIRS      = /p/paradyn/packages/tk3.6 /p/paradyn/packages/tcl7.3
76 IFLAGS          += $(patsubst %,-I%,$(TCLTK_DIRS))
77 LIBDIR          += $(patsubst %,-L%/$(PLATFORM),$(TCLTK_DIRS))
78 VPATH           += $(TCLTK_DIRS)
79 endif
80
81 ifdef USES_FLEX
82 FLEX_DIR        = /usr/psup/lib
83 LIBDIR          += $(patsubst %,-L%,$(FLEX_DIR))
84 VPATH           += $(FLEX_DIR)
85 endif
86
87 ifdef USES_LIBERTY
88 LIBERTY_DIR     = /usr/psup/gcc/lib
89 LIBDIR          += $(patsubst %,-L%,$(LIBERTY_DIR))
90 VPATH           += $(LIBERTY_DIR)
91 endif
92
93 ifdef USES_BLT
94 BLT_DIR         = /p/paradyn/packages/blt-1.7
95 LIBDIR          += $(patsubst %,-L%/$(PLATFORM),$(BLT_DIR))
96 VPATH           += $(BLT_DIR)/$(PLATFORM)
97 endif
98
99 ifdef USES_X11
100 ifeq ($(PLATFORM),sparc-sun-solaris2.3)
101 CFLAGS          += -I/usr/openwin/include
102 CXXFLAGS        += -I/usr/openwin/include
103 LIBDIR          += -L/usr/openwin/lib
104 VPATH           += /usr/openwin/lib
105 endif
106 endif
107
108
109 ifeq ($(PLATFORM),sparc-sun-solaris2.3)
110 RANLIB          = true
111 endif