source: trunk/third/wcl/WcMake2.isc @ 8837

Revision 8837, 4.3 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r8836, which included commits to RCS files with non-trunk default branches.
RevLine 
[8836]1###########################################################################
2# SCCS_data:       %Z% %M% %I% %E% %U%
3#
4# The other half of the things you need to tailor to port Wcl to a new
5# platform # when you do not have Imake.  WcMake1.tmpl has the first half.
6#
7# This file gets included by the subdirectory Makefiles of programs
8# (Ari, Mri, and Ori) after they set the following:
9# CLIENT_INCS CLIENT_LIBS SYS_LIBRARIES
10#
11# This file gets included by the subdirectory Makefiles of libraries
12# (Wc, Xp, Xop, and Xmp) after they set the following:
13# LIBRARY_NAME OBJS
14#
15
16  WCL_VER = 2.7
17
18###########################################################################
19# Wcl libraries, and everything after client libraries
20#
21# WCL_LIBS = $(WCLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
22  WCL_LIBS = $(WCLIB) $(XTOOLLIB) $(XLIB)
23
24# LAST_LIBS = -lsocket
25  LAST_LIBS = -lnsl_s
26# LAST_LIBS = -lsocket -lnsl -lc -L/usr/ucblib -lucb
27
28LOCAL_LIBRARIES = $(CLIENT_LIBS) $(WCL_LIBS) $(SYS_LIBRARIES) $(LAST_LIBS)
29  LOCAL_LDFLAGS = $(CLIENT_LDFLAGS) $(WCLDFLAG) $(X_LIBS)
30
31###########################################################################
32# Library File Name
33#
34#LIBRARY_FILE = lib$(LIBRARY_NAME).so.$(WCL_VER)
35#LIBRARY_FILE = lib$(LIBRARY_NAME).so
36 LIBRARY_FILE = lib$(LIBRARY_NAME).a
37
38###########################################################################
39# This will be used for all compilations from .c.o for libraries
40#
41    ALL_INCS = -I.. $(CLIENT_INCS) -I$(INCROOT)
42
43#CFLAGS_LIBS = -O  $(ALL_INCS) -DSUNSHLIB -DSHAREDCODE -pic
44#CFLAGS_LIBS = -O  $(ALL_INCS)
45 CFLAGS_LIBS = -O  $(ALL_INCS) -DISC301
46#CFLAGS_LIBS = -O  $(ALL_INCS) -KPIC -Xc -DNARROWPROTO
47#CFLAGS_LIBS = -O  $(ALL_INCS) -KPIC -Xc -DNARROWPROTO -DSYSV -DSVR4 -DSNI
48#CFLAGS_LIBS = -Ox $(ALL_INCS)
49#CFLAGS_LIBS = -g  $(ALL_INCS)
50#CFLAGS_LIBS = -g  $(ALL_INCS) -DXTTRACEMEMORY -DASSERTIONS
51
52###########################################################################
53# This will be used for all compilations from .c.o for applications
54#
55#CFLAGS_PROG = -O  -pipe $(ALL_INCS) -target sun4
56 CFLAGS_PROG = -O  $(ALL_INCS)
57#CFLAGS_PROG = -O  $(ALL_INCS) -Xc -DNARROWPROTO
58#CFLAGS_PROG = -O  $(ALL_INCS) -Xc -DNARROWPROTO -DSYSV -DSVR4 -DSNI
59#CFLAGS_PROG = -Ox $(ALL_INCS)
60
61###########################################################################
62# This will be used for all compilations from .c.o for test applications
63#
64#CFLAGS_TEST = -g  -pipe $(ALL_INCS)
65#CFLAGS_TEST = -g  -pipe $(ALL_INCS) -DXTTRACEMEMORY -DASSERTIONS
66#CFLAGS_TEST = -g  $(ALL_INCS) -Xc -DNARROWPROTO -DSYSV -DSVR4 -DSNI
67 CFLAGS_TEST = -g  $(ALL_INCS)
68
69###########################################################################
70# Command To Build Libraries (and run ranlib if necessary)
71#
72#MKLIB_CMD = ld -o $(LIBRARY_FILE) -assert pure-text $(OBJS)
73#MKLIB_CMD = rm -f $(LIBRARY_FILE).$(WCL_VER) ; $(LD) -o $(LIBRARY_FILE).$(WCL_VER) -G -z text -h $(LIBRARY_FILE).$(WCL_VER) $(OBJS) ; rm -f $(LIBRARY_FILE) ; ln -s $(LIBRARY_FILE).$(WCL_VER) $(LIBRARY_FILE)
74#MKLIB_CMD = ar clq $(LIBRARY_FILE) $(OBJS) ; ranlib $(LIBRARY_FILE)
75 MKLIB_CMD = ar clq $(LIBRARY_FILE) $(OBJS)
76
77###########################################################################
78# Command To Install Libraries
79#
80# CP_LIB = mv
81# CP_LIB = rm -f $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE).$(WCL_VER) $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE) ; mv $(LIBRARY_FILE).$(WCL_VER) $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE).$(WCL_VER) ; ln -s $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE).$(WCL_VER) $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE) ; echo moved
82# CP_LIB = cp -p
83  CP_LIB = rm -f $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE) ; ar clq $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE) $(OBJS) ; echo moved
84
85###########################################################################
86# Command to update libraries after installation
87#
88# RANLIB = ranlib
89  RANLIB = echo Done with
90
91
92###########################################################################
93# This will be used to link applications
94#
95#LDFLAGS_PROG = -O -pipe $(LOCAL_LDFLAGS) $(LOCAL_LIBRARIES)
96 LDFLAGS_PROG = $(LOCAL_LDFLAGS) $(LOCAL_LIBRARIES)
97
98###########################################################################
99###########################################################################
100###########################################################################
101# You probably never need to edit anything below here
102#
103  SHELL = /bin/sh
104   MAKE = make -f MakeByHand
Note: See TracBrowser for help on using the repository browser.