source: trunk/third/wcl/WcMake2.hp @ 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) -DNARROWPROTO -Aa -D_HPUX_SOURCE
45#CFLAGS_LIBS = -O  $(ALL_INCS) -KPIC -Xc -DNARROWPROTO -DSYSV -DSVR4 -DSNI
46#CFLAGS_LIBS = -Ox $(ALL_INCS)
47#CFLAGS_LIBS = -g  $(ALL_INCS)
48#CFLAGS_LIBS = -g  $(ALL_INCS) -DXTTRACEMEMORY -DASSERTIONS
49
50###########################################################################
51# This will be used for all compilations from .c.o for applications
52#
53#CFLAGS_PROG = -O  -pipe $(ALL_INCS) -target sun4
54#CFLAGS_PROG = -O  $(ALL_INCS)
55 CFLAGS_PROG = -O  $(ALL_INCS) -DNARROWPROTO -Aa -D_HPUX_SOURCE
56#CFLAGS_PROG = -O  $(ALL_INCS) -Xc -DNARROWPROTO -DSYSV -DSVR4 -DSNI
57#CFLAGS_PROG = -Ox $(ALL_INCS)
58
59###########################################################################
60# This will be used for all compilations from .c.o for test applications
61#
62#CFLAGS_TEST = -g  -pipe $(ALL_INCS)
63#CFLAGS_TEST = -g  -pipe $(ALL_INCS) -DXTTRACEMEMORY -DASSERTIONS
64 CFLAGS_TEST = -g  $(ALL_INCS) -DNARROWPROTO -Aa -D_HPUX_SOURCE
65#CFLAGS_TEST = -g  $(ALL_INCS) -Xc -DNARROWPROTO -DSYSV -DSVR4 -DSNI
66#CFLAGS_TEST = -g  $(ALL_INCS)
67
68###########################################################################
69# Command To Build Libraries (and run ranlib if necessary)
70#
71#MKLIB_CMD = ld -o $(LIBRARY_FILE) -assert pure-text $(OBJS)
72#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)
73#MKLIB_CMD = ar clq $(LIBRARY_FILE) $(OBJS) ; ranlib $(LIBRARY_FILE)
74 MKLIB_CMD = ar clq $(LIBRARY_FILE) $(OBJS)
75
76###########################################################################
77# Command To Install Libraries
78#
79# CP_LIB = mv
80# 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
81# CP_LIB = cp -p
82  CP_LIB = rm -f $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE) ; ar clq $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE) $(OBJS) ; echo moved
83
84###########################################################################
85# Command to update libraries after installation
86#
87# RANLIB = ranlib
88  RANLIB = echo Done with
89
90###########################################################################
91# This will be used to link applications
92#
93#LDFLAGS_PROG = -O -pipe $(LOCAL_LDFLAGS) $(LOCAL_LIBRARIES)
94 LDFLAGS_PROG = $(LOCAL_LDFLAGS) $(LOCAL_LIBRARIES)
95
96###########################################################################
97###########################################################################
98###########################################################################
99# You probably never need to edit anything below here
100#
101  SHELL = /bin/sh
102   MAKE = make -f MakeByHand
Note: See TracBrowser for help on using the repository browser.