1# Config-Makefile for Husky-packages 2# You must modify this file according to your needs. 3 4############################################################################## 5#PART 1: DIRECTORIES AND FILENAMES 6#You always need to change these to match your preferences 7############################################################################## 8 9# Prefix for all directories 10# Set to your homedir if you have no root privilegies 11PREFIX=/usr/local 12 13# Where libraries (both .a and .so files) should be placed 14# You should take care that this directory is listed in the LD_LIBRARY_PATH 15# environment variable (if necessary, modify your /etc/profile file). 16LIBDIR=$(PREFIX)/lib 17 18# Where the programs should be placed. 19BINDIR=$(PREFIX)/bin 20 21# Where manual pages should be placed. 22MANDIR=$(PREFIX)/man 23 24# Where include files should be placed (don't worry, no files will be over- 25# written, Husky will use its own subdirectories below this directory): 26INCDIR=$(PREFIX)/include 27 28# The fidoconfig config file will be in this DIRECTORY: 29CFGDIR=$(PREFIX)/etc/fido 30 31# Filename (without path) for the config file (default: config) 32#CFGNAME=config 33 34# IF you have a working texinfo installation (consisting of the "makeinfo" 35# and "install-info" programs), you should uncomment and adapt this 36# line - it will cause GNU info documentation to be built and installed 37# into the given directory. If you leave it commented out, the documentation 38# will not be compiled, and you won't know how to use the software ;-). 39# You should take care that this directory is listed in the INFOPATH 40# environment variable (if necessary, modify your /etc/profile file). 41INFODIR=$(PREFIX)/info 42 43# The same as above, but for DVI documentation. This requires a working 44# "texi2dvi" program. 45# DVIDIR=${PREFIX}/share/doc/husky 46 47# The same as above, but for HTML documentation. This requires a working 48# "texi2html" program. 49HTMLDIR=$(PREFIX)/share/doc/husky 50 51# Name of the config file of MSGED TE: 52MSGEDCFG=\"$(CFGDIR)/msged.cfg\" 53 54 55############################################################################## 56#PART 2: PLATFORM DEPENDENT SECTION 57#If you are running Linux with GNU cc, you don't need to modify anything in 58#the following sections. If you are running any other operating system or using 59#any other C compiler, you should check the values. For some operating 60#systems, the comments contain information on what you need to change. 61############################################################################## 62 63 64############################################################################## 65# Programs 66############################################################################## 67 68# C-Compiler 69#CC=cc 70 71# C++-Compiler 72#CXX=c++ 73 74#Msged needs access to a termcap library. Define its name here. 75#On Linux, termcap is integrated into ncurses: 76TERMCAP=ncurses 77#On FreeBSD or commerical Unices, you may try one of the following: 78#TERMCAP=termcap 79#TERMCAP=terminfo 80 81# C++-Compiler 82GPP=c++ 83 84# Pascal-Compiler (the compiler is optional, but the value of this 85# variable must be defined even if you don't have a Pascal compiler). 86PC=ppc386 87 88# archiver (for object-files) 89AR=ar 90 91# how to build shared libraries 92# use cc on Linux and FreeBSD 93# use ld on BeOS and also try ld if cc does not work for you 94# only "cc" will put so version numbers into the shared object 95# On Solaris use "-G" as additional linkerflag !!!!!!! 96# MKSHARED=ld 97# LD=ld -G 98MKSHARED=$(CC) 99 100# remove file 101RM=rm 102 103# The "install" program. 104# On Linux and FreeBSD/NetBSD, use this: 105INSTALL= 106# On Tru64 Unix, use this: 107# INSTALL=installbsd 108# On Solaris, use this: 109# INSTALL=/usr/ucb/install 110 111# link file (DOS: copy file) 112LN=ln 113 114# create directory 115MKDIR=mkdir 116 117# update dynamic library cache 118# If your operating system does not need this, you may comment out this line. 119#LDCONFIG=/sbin/ldconfig 120 121# rename a file 122MV=mv 123 124#copy a file 125CP=cp 126 127#Make a library file usable. You may leave this empty if it is n/a. 128RANLIB=ar s 129 130# C-style header file to pascal unit converter (shipped with fpc) 131H2PAS=h2pas 132 133############################################################################# 134# program options 135############################################################################# 136 137# type of operating system (UNIX,MSDOS,OS2,WINNT) 138# for BeOS, use UNIX! 139OSTYPE=UNIX 140 141# short name of operating system (used for PID lines etc.) 142#UNAME=LNX 143UNAME=BSD 144#UNAME=OS2 145#UNAME=BEOS 146 147# Do you want debug information? (This is for developers only.) 148DEBUG=0 149 150# 8.3 names - NOTE: This switch is obsolete and probably does not work! 151SHORTNAMES=0 152 153# Perl support 154PERL=1 155 156# ZipInternal packer 157USE_HPTZIP=0 158 159# The DYNLIBS switch controls if dynamic or static linkage is used. 160# This is tricky. If you set DYNLIBS=1, dynamic libraries (.so files) 161# will be generated and used. This will only work if you are running "cc" 162# on Linux, FreeBSD or another real Unix operating system. 163 164# On other systems, you must set DYNLIBS=0. Even on Linux, you might 165# want to do this if you are sick of shared library version mismatch 166# problems. 167 168# If you set DYNLIBS=0, but have Unix/Linux, you might want to add 169# "-static" to the OPTCFLAGS and WARNCFLAGS variables (above) in order 170# to avoid linkage with old .so files that may be floating around 171# (see 'ifeq ( $(DYNLIBS), 0 )' conditions) 172# 173DYNLIBS=1 174 175# C-compiler: specify name of executable 176EXENAMEFLAG=-o 177 178# C-compiler: generate warnings 179WARNFLAGS=-Wall 180 181# C-compiler: optimization 182OPTCFLAGS=-c -fPIC 183 184ifeq ( $(DYNLIBS), 0 ) 185 ifeq ($(OSTYPE), UNIX) 186 WARNFLAGS+= -static 187 OPTCFLAGS+= -static 188 endif 189endif 190 191# C-compiler: debug 192DEBCFLAGS=-c -ggdb 193 194# C-compiler: additional defines, for features of your OS 195# On Solaris, Msged only works with the curses interface, so use: 196#ADDCDEFS+=-DUSE_CURSES 197# Some FS and some OS don't support filelocking. Try alternative locking 198# *** THIS IS BETA-CODE *** report problems or success to FIDOSOFT.HUSKY *** 199#ADDCDEFS+=-DALTLOCKING 200# If your are not under UNIX, EMX or DJGPP and have popen() uncomment this: 201#ADDCDEFS+=-DHAVE_POPEN 202 203# Pascal-Compiler: optimization 204OPTPFLAGS= 205 206# Pascal-Compiler: debug 207DEBPFLAGS= 208 209# Pascal-Compiler: additional defines, for features of your OS 210ADDPDEFS= 211 212# object linker: optimization 213OPTLFLAGS=-s 214 215# object linker: debug 216DEBLFLAGS=-g 217 218# options for installing programs 219IBOPT=$(BSD_INSTALL_PROGRAM) 220 221# options for installing scripts 222ISOPT=$(BSD_INSTALL_SCRIPT) 223 224# options for installing shared libs 225ILOPT=$(BSD_INSTALL_LIB) 226 227# options for installing static libs 228ISLOPT=$(BSD_INSTALL_LIB) 229 230# options for installing man-pages 231IMOPT=$(BSD_INSTALL_MAN) 232 233# options for installing includes 234IIOPT=$(BSD_INSTALL_DATA) 235 236# options for making links 237LNOPT=-sf 238 239# archiver options 240AR_R = r 241 242# options for creating directories 243MKDIROPT=-p 244 245# options for removing files (e.g. for clean, distclean, uninstall) 246RMOPT=-f 247 248 249############################################################################# 250# file extensions 251############################################################################# 252 253# extension of executable (e.g. ".exe") 254_EXE= 255 256# extension of object file 257_OBJ=.o 258 259# extension of static libs 260_LIB=.a 261 262# extension of dynamic libs 263_DLL=.so 264 265# extension of compiled pascal units 266_TPU=.ppu 267 268# directory separator (DOS-like: "\\", Unix-like: "/") 269 270ifeq (${OSTYPE}, UNIX) 271 DIRSEP=/ 272else 273 DIRSEP=\\ 274endif 275