system.mk

Sun, 27 Aug 2000 21:21:29 +0200

author
tuomov
date
Sun, 27 Aug 2000 21:21:29 +0200
changeset 20
3f11f764772a
parent 16
f597c8f0bcc9
child 29
a2715cff4288
permissions
-rw-r--r--

trunk: changeset 23
Made check_args non-static for use with ion

##
## System settings
##


##
## Installation directory prefix
##

PREFIX=/usr/local

#EXTRA_INCLUDES = -I$(PREFIX)/include
#EXTRA_LIBS = -L$(PREFIX)/lib


##
## X libraries, includes and options
##

X11_PREFIX=/usr/X11R6

# SunOS/Solaris
#X11_PREFIX=/usr/openwin

X11_LIBS=-L$(X11_PREFIX)/lib
X11_INCLUDES=-I$(X11_PREFIX)/include
X11_DEFINES=


##
## C compiler
##

CC=gcc

# The ANSI_SOURCE, XOPEN_SOURCE and WARN options should not be necessary,
# they're mainly for development use. So, if they cause trouble (not
# the ones that should be used on your system or the system is broken),
# just comment them out.

# libtu/ uses POSIX_SOURCE

POSIX_SOURCE=-ansi -D_POSIX_SOURCE

# and . (pwm) XOPEN_SOURCE

# This should be used for gnu libc (linux), but SA_RESTART seems to be
# broken so don't use anything.
#XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
# Some other systems.
#XOPEN_SOURCE=-ansi -D__EXTENSIONS__

# Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often
# have unused variables.
WARN=	-W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
	-Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized \
	-Wparentheses -pedantic-errors

CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
LDFLAGS=-g $(LIBS) $(EXTRA_LIBS)


##
## make depend
##

DEPEND_FILE=.depend
MAKE_DEPEND=$(CC) -M $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) > $(DEPEND_FILE)


##
## AR
##

AR=ar
ARFLAGS=crs


##
## Install & strip
##

INSTALL=install -c
# bsdinst or bsdinst.sh should do the job under IRIX. In theory.
#INSTALL=bsdinst -c

BIN_MODE=755
DATA_MODE=664

STRIP=strip

mercurial