system.mk

Sat, 01 Jul 2000 13:31:40 +0200

author
tuomov
date
Sat, 01 Jul 2000 13:31:40 +0200
changeset 15
9f5760af87d9
parent 9
55e7f2ff6021
child 16
f597c8f0bcc9
permissions
-rw-r--r--

trunk: changeset 18
long double -> double

##
## 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

ANSI_SOURCE=-ansi
# gnu libc
XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
# most 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