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