Lines 1-17
Link Here
|
1 |
--- Makefile.orig Sat May 29 09:35:43 1993 |
1 |
--- Makefile.orig Sat May 29 20:35:43 1993 |
2 |
+++ Makefile Fri Mar 9 10:17:33 2001 |
2 |
+++ Makefile Thu Jul 13 01:33:02 2006 |
3 |
@@ -116,8 +116,8 @@ |
3 |
@@ -28,7 +28,7 @@ |
|
|
4 |
# It can also be specified here by uncommenting the following |
5 |
# macro definition and setting appropriately. |
6 |
# |
7 |
-HELPNAME = -DHELPNAME=\"$(LIBDIR)/calctool.help\" |
8 |
+HELPNAME = -DHELPNAME=\"%%DATADIR%%/calctool.help\" |
9 |
#----------------------------------------------------------------------- |
10 |
# An attempt is now made at using a portable math library. You should |
11 |
# carefully setup the following three definitions. |
12 |
@@ -85,13 +85,13 @@ |
13 |
# uncomment the other three definitions below, commented out the initial |
14 |
# two. |
15 |
# |
16 |
-LIBNAME = libcalctool.a |
17 |
-CALCLIB = $(LIBNAME) |
18 |
+#LIBNAME = libcalctool.a |
19 |
+#CALCLIB = $(LIBNAME) |
20 |
# |
21 |
# Shared library definitions. Uncomment if required. |
22 |
-#LIBNAME = libcalctool.so.1.1 |
23 |
-#CALCLIB = -L. -lcalctool |
24 |
-#SHLIB = -pic |
25 |
+LIBNAME = libcalctool.so.1 |
26 |
+CALCLIB = -L . -lcalctool |
27 |
+SHLIB = %%FPIC%% |
28 |
#----------------------------------------------------------------------- |
29 |
# If you are not running under a BSD4.3 derived system, then the |
30 |
# second parameter to a select call is a pointer to an integer function, |
31 |
@@ -116,38 +116,37 @@ |
4 |
# library files are not in a standard place, then the following |
32 |
# library files are not in a standard place, then the following |
5 |
# two lines should be uncommented, and set appropriately. |
33 |
# two lines should be uncommented, and set appropriately. |
6 |
# |
34 |
# |
7 |
-#X11INCDIR = -I$(OPENWINHOME)/include |
35 |
-#X11INCDIR = -I$(OPENWINHOME)/include |
8 |
-#X11LIBDIR = -L$(OPENWINHOME)/lib |
36 |
-#X11LIBDIR = -L$(OPENWINHOME)/lib |
9 |
+X11INCDIR = -I${X11BASE}/include |
37 |
+X11INCDIR = -I%%X11BASE%%/include |
10 |
+X11LIBDIR = -L${X11BASE}/lib |
38 |
+X11LIBDIR = -L%%X11BASE%%/lib |
11 |
#------------------------------------------------------------------------- |
39 |
#------------------------------------------------------------------------- |
12 |
# If you are compiling the XView version, then the following two lines |
40 |
# If you are compiling the XView version, then the following two lines |
13 |
# should be uncommented. |
41 |
# should be uncommented. |
14 |
@@ -130,14 +130,14 @@ |
42 |
# |
|
|
43 |
-XVIEWINCDIR = -I$(OPENWINHOME)/include |
44 |
-XVIEWLIBDIR = -L$(OPENWINHOME)/lib |
45 |
+#XVIEWINCDIR = -I$(OPENWINHOME)/include |
46 |
+#XVIEWLIBDIR = -L$(OPENWINHOME)/lib |
47 |
# |
48 |
#========================================================================= |
49 |
# |
15 |
# Default locations where calctool files will be installed. |
50 |
# Default locations where calctool files will be installed. |
16 |
# You might wish to alter these values. |
51 |
# You might wish to alter these values. |
17 |
# |
52 |
# |
Lines 19-52
Link Here
|
19 |
-LIBDIR = /usr/local/lib |
54 |
-LIBDIR = /usr/local/lib |
20 |
-MANDIR = /usr/man/man$(MANSECT) |
55 |
-MANDIR = /usr/man/man$(MANSECT) |
21 |
-MANSECT = l |
56 |
-MANSECT = l |
22 |
+BINDIR = ${PREFIX}/bin |
57 |
+BINDIR = $(PREFIX)/bin |
23 |
+LIBDIR = ${PREFIX}/lib/X11 |
58 |
+LIBDIR = $(PREFIX)/lib |
24 |
+MANDIR = ${PREFIX}/man/man$(MANSECT) |
59 |
+MANDIR = $(PREFIX)/man/man$(MANSECT) |
25 |
+MANSECT = 1 |
60 |
+MANSECT = 1 |
26 |
# |
61 |
# |
27 |
# Compilation flags and standard macro definitions. |
62 |
# Compilation flags and standard macro definitions. |
28 |
# |
63 |
# |
29 |
-CFLAGS = -g $(HELPNAME) $(NEWSFILE) $(STUPID_FPE) $(NOIEEE) \ |
64 |
-CFLAGS = -g $(HELPNAME) $(NEWSFILE) $(STUPID_FPE) $(NOIEEE) \ |
30 |
+CFLAGS += $(HELPNAME) $(NEWSFILE) $(STUPID_FPE) $(NOIEEE) \ |
65 |
+CFLAGS += $(HELPNAME) $(NEWSFILE) $(STUPID_FPE) $(NOIEEE) \ |
31 |
$(NOINDEX) $(RCNAME) $(SELTYPE) $(SHLIB) $(SIGRET) \ |
66 |
$(NOINDEX) $(RCNAME) $(SELTYPE) $(SHLIB) $(SIGRET) \ |
32 |
$(SUN4_KEYBOARD) $(TTEXT) $(MGRPARAM) $(MGRINCDIR) \ |
67 |
$(SUN4_KEYBOARD) $(TTEXT) $(MGRPARAM) $(MGRINCDIR) \ |
33 |
$(X11INCDIR) $(XVIEWINCDIR) |
68 |
$(X11INCDIR) $(XVIEWINCDIR) |
34 |
@@ -147,7 +147,7 @@ |
69 |
# |
35 |
BINARIES = mgr_calctool ps_calctool sv_calctool \ |
70 |
#========================================================================= |
36 |
tty_calctool xcalctool xv_calctool |
71 |
|
|
|
72 |
-BINARIES = mgr_calctool ps_calctool sv_calctool \ |
73 |
- tty_calctool xcalctool xv_calctool |
74 |
+BINARIES = %%BINARIES%% |
37 |
|
75 |
|
38 |
-CC = cc |
76 |
-CC = cc |
39 |
+#CC = cc |
77 |
+#CC = cc |
40 |
|
78 |
|
41 |
LIBSRCS = graphics.c display.c functions.c get.c |
79 |
LIBSRCS = graphics.c display.c functions.c get.c |
42 |
LIBOBJS = graphics.o display.o functions.o get.o |
80 |
LIBOBJS = graphics.o display.o functions.o get.o |
43 |
@@ -233,8 +233,7 @@ |
81 |
@@ -208,11 +207,10 @@ |
44 |
ld -o libcalctool.so.1.1 -assert pure-text $? |
82 |
$(CC) -o sv_calctool $(CFLAGS) $(STDOBJS) sunview.o $(SVIEWLIBS) |
|
|
83 |
-cp sv_calctool calctool |
84 |
|
85 |
-tty: $(OBJS) tty.o |
86 |
+tty_calctool: $(OBJS) tty.o |
87 |
$(CC) -o tty_calctool $(CFLAGS) $(STDOBJS) tty.o $(TTYLIBS) |
88 |
- -cp tty_calctool calctool |
89 |
|
90 |
-x11: $(OBJS) x11.o |
91 |
+xcalctool: $(OBJS) x11.o |
92 |
$(CC) -o xcalctool $(X11LIBDIR) $(CFLAGS) $(STDOBJS) x11.o \ |
93 |
$(X11LIBS) |
94 |
-cp xcalctool calctool |
95 |
@@ -229,8 +227,9 @@ |
96 |
# These are the library creation rules for making the shared calctool |
97 |
# library (available with SunOS v4.x). |
98 |
|
99 |
-libcalctool.so.1.1: $(LIBOBJS) |
100 |
- ld -o libcalctool.so.1.1 -assert pure-text $? |
101 |
+libcalctool.so.1: $(LIBOBJS) |
102 |
+ $(CC) -shared -o ${LIBNAME} $? |
103 |
+ ln -sf ${LIBNAME} libcalctool.so |
45 |
|
104 |
|
46 |
install: |
105 |
install: |
47 |
- install -c -m 644 $(LIBNAME) $(LIBDIR) |
106 |
install -c -m 644 $(LIBNAME) $(LIBDIR) |
48 |
- install -s -m 751 calctool $(BINDIR) |
|
|
49 |
+ install -c -s -m 751 calctool $(BINDIR) |
50 |
install -c -m 644 calctool.help $(LIBDIR) |
51 |
install -c -m 644 calctool.ps $(LIBDIR) |
52 |
install -c -m 644 calctool.1 $(MANDIR)/calctool.$(MANSECT) |