1
# @(#) $Revision: 4.21 $ $Source: /judy/make_includes/platform.freebsd_ia32.mk $
3
# Makefile fragment for Judy* for platform "freebsd_ia32".
4
# See platform.hpux_pa.mk for more comments.
8
# For portability use the generic names for cc, ld, and ar, which are typically
9
# symlinks to more specific names, such as /usr/bin/cc -> /opt/ansic/bin/cc.
17
# Object file directories:
19
# $INTDIR is the location for intermediate (non-deliverable) constructed files,
20
# optionally including a suffix component for recursive make calls.
22
# $DELDIR is the CPF-standard "deliver/" followed by various paths for
23
# different files so they are in an appropriate place for delivery to an HPUX
24
# system. Yes, this leads to annoyingly long full paths such as
25
# hpux_pa/product/deliver/usr/share/doc/Judy, but Judy-cious use of symlinks in
26
# the top of a personal sandbox can mitigate this.
28
# Note: Through version 4.56, files were placed in deliver/opt/Judy, but in
29
# preparation for 11.11 OEUR delivery we decided they belong in various "core
30
# HPUX" locations under /usr on the filesystem (see below).
32
# Note: For open source delivery, Judy files belong back in /opt/Judy; see the
35
# Note: For safety the values of $OBJDIR_OPT and the suffix of $DELDIR_DOC are
36
# hard-coded into the install and uninstall targets.
38
OBJDIR_OPT = /opt/Judy
40
# For Linux, $DELDIR_LIB_SUFFIX is simply null.
42
DELDIR_LIB = $(DELDIR)/usr/lib$(DELDIR_LIB_SUFFIX)
43
DELDIR_INC = $(DELDIR)/usr/include
44
DELDIR_DOC = $(DELDIR)/usr/share/doc/Judy
45
DELDIR_DEMO = $(DELDIR_DOC)/demo
46
DELDIR_MAN = $(DELDIR)/usr/share/man/man3$(MANDIR_SUFFIX)
48
# Use normal tools for building internal tools (programs):
50
CCPATH_TOOL = $(CCPATH)
52
CSTRIP = cstrip_not_present
54
# HP-UX has rmnl(1) but NetBSD does not, so use grep instead; note the tab:
56
RMNL = grep -v '^[ ]*$$'
58
# How to echo with escaped chars expanded; NetBSD /bin/sh requires -e:
63
# Suffix for $LIB_ID (same as what's passed in $LIB_SUFFIX for a recursive
68
# Linker option to build a shared library:
70
# Note: The gcc manual entry contains this ominous prose about the -shared
71
# option: "Only a few systems support this option." We'll see...
73
# TBD: In the long run we should probably append a version number suffix to
74
# the library and use the ld -soname option (see the manual entry), but I think
75
# we can accomplish this later (at "version 2"). Also per the howto file (see
76
# http://www.ibiblio.org/pub/Linux/docs/HOWTO/GCC-HOWTO), it's possible the
77
# building should be done with gcc instead of ld.
81
# Optionally include PIC libs in tarchives:
83
TARCHIVE_LIBS_PIC = libs_pic
85
# NetBSD manual pages are not compressed.
91
# A weird concession to Win32 VC++ "CL" compiler, which needs -Fo to specify
92
# the object file and -Fe to specify the executable file:
94
# WARNING! There must be a blank after the "-o" on the following lines to
95
# satisfy the /opt/ccover/bin/covc command.
100
# Ensure $PLATFORM is set:
104
# Platform-specific library lists for NetBSD/IA32 for various "lib" targets:
108
LIBS_ALL_LIST = lib32a lib32so
109
LIBS_PIC_LIST = lib32PICa
111
# Unfortunately there are CC_OPTS differences between both platforms AND
112
# flavors, so spell them out here by flavor, meaning this file cannot be
115
CC_OPTS_product = -Wall -O
116
CC_OPTS_cov = -Wall -O -DJU_FLAVOR_COV
117
CC_OPTS_debug = -Wall -g -DJU_FLAVOR_DEBUG