1 | ########################################################################### |
---|
2 | # SCCS_data: %Z% %M% %I% %E% %U% |
---|
3 | # |
---|
4 | # Half of the things you need to tailor to port Wcl to a new platform |
---|
5 | # when you do not have Imake. WcMake2.tmpl has the other half. |
---|
6 | # |
---|
7 | |
---|
8 | ########################################################################### |
---|
9 | # Hacks for various release levels of your X and Xt system: |
---|
10 | # If X11R3.5 (i.e., Motif 1.0 Xt) these need to be uncommented: |
---|
11 | # OLD_XT_SRCS = Xt4GetResL.c XtMacros.c XtName.c |
---|
12 | # OLD_XT_OBJS = Xt4GetResL.o XtMacros.o XtName.o |
---|
13 | # BROKEN_XT = -DXtNameToWidgetBarfsOnGadgets |
---|
14 | |
---|
15 | ########################################################################### |
---|
16 | # If early X11R4 where XtNameToWidget barfs on Gadgets, uncomment these |
---|
17 | # OLD_XT_SRCS = XtName.c |
---|
18 | # OLD_XT_OBJS = XtName.o |
---|
19 | # BROKEN_XT = -DXtNameToWidgetBarfsOnGadgets |
---|
20 | |
---|
21 | ########################################################################### |
---|
22 | # Comment out any widget sets you do not have. |
---|
23 | # |
---|
24 | # WcATHENA = Xp Ari |
---|
25 | WcMOTIF = Xmp Mri |
---|
26 | #WcOPEN_LOOK = Xop Ori |
---|
27 | |
---|
28 | ########################################################################### |
---|
29 | # Special Flags for compiling files which use widget libraries |
---|
30 | # |
---|
31 | XP_LIB_OPTS = |
---|
32 | # XMP_LIB_OPTS = -D_OLD_MOTIF |
---|
33 | XMP_LIB_OPTS = -I/usr/include/Motif1.2 |
---|
34 | XOP_LIB_OPTS = -I/usr/openwin/include -I/usr/openwin/include/Xol |
---|
35 | |
---|
36 | ########################################################################### |
---|
37 | # The location of your X include files and libraries, and where Wcl |
---|
38 | # libraries and programs will be installed. |
---|
39 | # |
---|
40 | # Typical R5 locations: -- augmented for HP |
---|
41 | INCROOT = /usr/include/X11R5 |
---|
42 | INCDIR = $(INCROOT)/X11 |
---|
43 | USRLIBDIR = /usr/lib |
---|
44 | LIBDIR = $(USRLIBDIR)/X11 |
---|
45 | XAPPLOADDIR = $(LIBDIR)/app-defaults |
---|
46 | BINDIR = /usr/bin/X11 |
---|
47 | X_LIBS = -L/usr/lib/X11R5 -L/usr/lib/Motif1.2 |
---|
48 | # |
---|
49 | # Typical R4 and R3 locations: |
---|
50 | # INCROOT = /usr/include |
---|
51 | # INCDIR = $(INCROOT)/X11 |
---|
52 | # USRLIBDIR = /usr/lib |
---|
53 | # LIBDIR = $(USRLIBDIR)/X11 |
---|
54 | # XAPPLOADDIR = $(LIBDIR)/app-defaults |
---|
55 | # BINDIR = /usr/bin |
---|
56 | # X_LIBS = |
---|
57 | # |
---|
58 | # Typical SunOS locations: |
---|
59 | # INCROOT = /usr/openwin/include |
---|
60 | # INCDIR = $(INCROOT)/X11 |
---|
61 | # USRLIBDIR = /usr/openwin/lib |
---|
62 | # LIBDIR = /usr/lib/X11 |
---|
63 | # XAPPLOADDIR = $(LIBDIR)/app-defaults |
---|
64 | # BINDIR = /usr/openwin/bin |
---|
65 | # X_LIBS = -L/usr/openwin/lib |
---|
66 | |
---|
67 | ########################################################################### |
---|
68 | # If you are building for SunOS or SVR4, these must be uncommented |
---|
69 | # |
---|
70 | # DYNLIB = -ldl |
---|
71 | #DYN_LINK_FLAGS = -DWC_HAS_dlopen_AND_dlsym |
---|
72 | # WcSTUFF = Stuff |
---|
73 | |
---|
74 | ########################################################################### |
---|
75 | # Names of libraries |
---|
76 | # |
---|
77 | # Widget Libraries |
---|
78 | # |
---|
79 | XAWLIB = -lXaw |
---|
80 | XMLIB = -lXm |
---|
81 | # XMLIB = -lXm -lgen |
---|
82 | # XMLIB = -lXm -lPW |
---|
83 | XOLLIB = -lXol |
---|
84 | # |
---|
85 | # Wcl Distribution Libraries |
---|
86 | # |
---|
87 | WCLIB = -lWc $(DYNLIB) |
---|
88 | WCLDFLAG = -L$(WCTOPDIR)/Wc |
---|
89 | XPLIB = -lXp |
---|
90 | XPLDFLAG = -L$(WCTOPDIR)/Xp |
---|
91 | XMPLIB = -lXmp |
---|
92 | XMPLDFLAG = -L$(WCTOPDIR)/Xmp |
---|
93 | XOPLIB = -lXop |
---|
94 | XOPLDFLAG = -L$(WCTOPDIR)/Xop |
---|
95 | # |
---|
96 | # X11 Libraries |
---|
97 | # |
---|
98 | # XMULIB = -lXmu |
---|
99 | XTOOLLIB = -lXt |
---|
100 | EXTENSIONLIB = -lXext |
---|
101 | XLIB = $(EXTENSIONLIB) -lX11 |
---|
102 | |
---|
103 | ########################################################################### |
---|
104 | # Only a very poorly configured system (like SCO) needs this |
---|
105 | # |
---|
106 | # LOCAL_STRINGS_H = ./strings.h |
---|
107 | # GET_LOCAL_STRINGS_H = ln /usr/include/string.h ./strings.h |
---|
108 | # GET_LOCAL_STRINGS_H = cp /usr/include/string.h ./strings.h |
---|
109 | |
---|
110 | ########################################################################### |
---|
111 | # If you are building for SunOS, uncomment this. It really means that |
---|
112 | # the printf() supports %digit$ for specifying argument number. |
---|
113 | # WONDER_PRINTF = -DSUNOS_PRINTF |
---|
114 | |
---|
115 | ########################################################################### |
---|
116 | # The C compiler to use |
---|
117 | # |
---|
118 | # CC = cc |
---|
119 | CC = LD_RUN_PATH=$(USRLIBDIR) ; export LD_RUN_PATH ; /bin/cc |
---|
120 | # CC = gcc -fstrength-reduce -fpcc-struct-return |
---|
121 | |
---|
122 | ########################################################################### |
---|
123 | # The Loader to use |
---|
124 | # |
---|
125 | # LD = cc |
---|
126 | LD = LD_RUN_PATH=$(USRLIBDIR) ; export LD_RUN_PATH ; /bin/cc |
---|
127 | |
---|
128 | ########################################################################### |
---|
129 | # The C pre-processor to use for app-defaults files |
---|
130 | # |
---|
131 | CPP = /lib/cpp |
---|
132 | |
---|
133 | ########################################################################### |
---|
134 | # For putting library include files in ./X11/$(LIB) for easy access |
---|
135 | # |
---|
136 | LN = ln -s |
---|
137 | # LN = ln |
---|
138 | |
---|
139 | ########################################################################### |
---|
140 | # The owner of installed programs, include files, and libraries |
---|
141 | # |
---|
142 | OWNER = root |
---|
143 | |
---|
144 | ########################################################################### |
---|
145 | # Access flags for installed files |
---|
146 | # |
---|
147 | INSTDIRFLAGS = 0755 |
---|
148 | INSTBINFLAGS = 0755 |
---|
149 | INSTLIBFLAGS = 0644 |
---|
150 | INSTINCFLAGS = 0444 |
---|
151 | INSTMANFLAGS = 0444 |
---|
152 | INSTAPPDEFFLAGS = 0444 |
---|
153 | |
---|
154 | ########################################################################### |
---|
155 | # Man page locations and suffixes |
---|
156 | # |
---|
157 | PGMMANDIR = /usr/man/X11/mann |
---|
158 | PGMMANSUFFIX = 1 |
---|
159 | PGMMANSRCSUFFIX = man |
---|
160 | LIBMANDIR = /usr/man/X11/mann |
---|
161 | LIBMANSUFFIX = 3 |
---|
162 | LIBMANSRCSUFFIX = man |
---|