source: trunk/third/wcl/WcMake2.aix @ 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.
Line 
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 = -lsocket -lnsl -lc -L/usr/ucblib -lucb
26
27LOCAL_LIBRARIES = $(CLIENT_LIBS) $(WCL_LIBS) $(SYS_LIBRARIES) $(LAST_LIBS)
28  LOCAL_LDFLAGS = $(CLIENT_LDFLAGS) $(WCLDFLAG) $(X_LIBS)
29
30###########################################################################
31# Library File Name
32#
33#LIBRARY_FILE = lib$(LIBRARY_NAME).so.$(WCL_VER)
34#LIBRARY_FILE = lib$(LIBRARY_NAME).so
35 LIBRARY_FILE = lib$(LIBRARY_NAME).a
36
37###########################################################################
38# This will be used for all compilations from .c.o for libraries
39#
40    ALL_INCS = -I.. $(CLIENT_INCS) -I$(INCROOT)
41
42#CFLAGS_LIBS = -O  $(ALL_INCS) -DSUNSHLIB -DSHAREDCODE -pic
43#CFLAGS_LIBS = -O  $(ALL_INCS)
44#CFLAGS_LIBS = -O  $(ALL_INCS) -KPIC -Xc -DNARROWPROTO
45#CFLAGS_LIBS = -O  $(ALL_INCS) -KPIC -Xc -DNARROWPROTO -DSYSV -DSVR4 -DSNI
46 CFLAGS_LIBS = -O  $(ALL_INCS) -DSYSV -DAIXV3
47#CFLAGS_LIBS = -Ox $(ALL_INCS)
48#CFLAGS_LIBS = -g  $(ALL_INCS)
49#CFLAGS_LIBS = -g  $(ALL_INCS) -DXTTRACEMEMORY -DASSERTIONS
50
51###########################################################################
52# This will be used for all compilations from .c.o for applications
53#
54#CFLAGS_PROG = -O  -pipe $(ALL_INCS) -target sun4
55#CFLAGS_PROG = -O  $(ALL_INCS)
56 CFLAGS_PROG = -O  $(ALL_INCS) -DSYSV -DAIX3
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) -DSYSV -DAIX3
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# This will be used to link applications
93#
94#LDFLAGS_PROG = -O -pipe $(LOCAL_LDFLAGS) $(LOCAL_LIBRARIES)
95 LDFLAGS_PROG = $(LOCAL_LDFLAGS) $(LOCAL_LIBRARIES)
96
97###########################################################################
98###########################################################################
99###########################################################################
100# You probably never need to edit anything below here
101#
102  SHELL = /bin/sh
103   MAKE = make -f MakeByHand
Note: See TracBrowser for help on using the repository browser.