2015-10-02 21:12:35 +02:00
|
|
|
#
|
|
|
|
# $Id: default.conf 2007 2013-12-03 14:21:39Z viari $
|
|
|
|
#
|
|
|
|
# default.conf
|
|
|
|
# default configuration flags
|
|
|
|
# maybe further redefined by machine specific configuration
|
|
|
|
#
|
|
|
|
# this file is included by auto.conf
|
|
|
|
#
|
|
|
|
|
|
|
|
# ------------------------------------
|
|
|
|
# General compilation flags
|
|
|
|
# ------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# MACHDEF : define machine and OS specific flags
|
|
|
|
#
|
|
|
|
|
|
|
|
MACHDEF =
|
|
|
|
|
|
|
|
#
|
|
|
|
# CC : (ansi C) compiler command to use
|
|
|
|
# you may add some machine specific flags (like -arch ...)
|
|
|
|
# in the <machine>.conf configuration file
|
|
|
|
#
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
#
|
|
|
|
# default compiler optimizer flag
|
|
|
|
#
|
|
|
|
|
|
|
|
OPTIM = -O
|
|
|
|
|
|
|
|
#
|
|
|
|
# CC_LIBS : additionnal machine specific $(CC) libraries
|
|
|
|
# like '-lC' on some machines
|
|
|
|
#
|
|
|
|
|
|
|
|
CC_LIBS =
|
|
|
|
|
|
|
|
#
|
|
|
|
# MALLOC_LIBS : machine specific malloc librairies
|
|
|
|
# like '-lmalloc' on SGI
|
|
|
|
#
|
|
|
|
|
|
|
|
MALLOC_LIBS =
|
|
|
|
|
|
|
|
#
|
|
|
|
# MATH_LIBS : machine specific math librairies
|
|
|
|
# like '-lm' on Solaris
|
|
|
|
#
|
|
|
|
|
|
|
|
MATH_LIBS =
|
|
|
|
|
|
|
|
#
|
|
|
|
# LINT : looks like LINT command does not exist anymore
|
|
|
|
# here is a rough replacement
|
|
|
|
#
|
|
|
|
|
|
|
|
LINT = gcc -S -Wall -Wno-format-y2k -W -Wstrict-prototypes \
|
|
|
|
-Wmissing-prototypes -Wpointer-arith -Wreturn-type \
|
|
|
|
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow \
|
|
|
|
-Wcast-align -Wbad-function-cast -Wchar-subscripts \
|
|
|
|
-Winline -Wnested-externs -Wredundant-decls
|
|
|
|
|
|
|
|
# ------------------------------------
|
|
|
|
# General system commands
|
|
|
|
# ------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# AR : AR archive command
|
|
|
|
# ARFLAGS : $(AR) archiving flags
|
|
|
|
# ARXFLAGS : $(AR) extraction flags
|
|
|
|
#
|
|
|
|
|
|
|
|
AR = ar
|
|
|
|
ARFLAGS = rcv
|
|
|
|
ARXFLAGS = xv
|
|
|
|
|
|
|
|
#
|
|
|
|
# RANLIB : ranlib command
|
|
|
|
#
|
|
|
|
|
|
|
|
RANLIB = ranlib
|
|
|
|
|
|
|
|
#
|
|
|
|
# DIFF : diff command
|
|
|
|
#
|
|
|
|
|
|
|
|
DIFF = diff
|
|
|
|
|
|
|
|
#
|
|
|
|
# TAR : tar command
|
|
|
|
#
|
|
|
|
|
|
|
|
TAR = tar
|
|
|
|
|
|
|
|
# ------------------------------------
|
|
|
|
# Default locations
|
|
|
|
# ------------------------------------
|
|
|
|
#
|
|
|
|
# PRTDIR : port dependent files location (libraries and binaries)
|
|
|
|
# BINDIR : port binaries
|
|
|
|
# LIBDIR : port libraries
|
2015-10-02 23:20:33 +02:00
|
|
|
# INCDIR : port includes
|
2015-10-02 21:12:35 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
PRTDIR = $(CFGDIR)../ports/$(PORTNAME)
|
|
|
|
|
2015-10-02 23:20:33 +02:00
|
|
|
BINDIR = $(abspath $(PRTDIR))/bin
|
2015-10-02 21:12:35 +02:00
|
|
|
|
2015-10-02 23:20:33 +02:00
|
|
|
LIBDIR = $(abspath $(PRTDIR))/lib
|
|
|
|
|
|
|
|
INCDIR = $(abspath $(PRTDIR))/include
|
2015-10-02 21:12:35 +02:00
|
|
|
|
|
|
|
# ------------------------------------
|
|
|
|
# default gmake variable in implicit rules
|
|
|
|
# ------------------------------------
|
|
|
|
|
2015-11-14 00:11:27 +01:00
|
|
|
#CFLAGS := $(CFLAGS) $(OPTIM) $(MACHDEF) -I$(INCDIR)
|
|
|
|
CFLAGS = $(OPTIM) $(MACHDEF) -I$(INCDIR)
|
2015-10-02 21:12:35 +02:00
|
|
|
|
2015-11-14 00:11:27 +01:00
|
|
|
#LDFLAGS := $(LDFLAGS) -L$(LIBDIR) -L.
|
|
|
|
LDFLAGS = -L$(LIBDIR) -L.
|
2015-10-02 21:12:35 +02:00
|
|
|
|
2015-11-14 00:11:27 +01:00
|
|
|
LDLIBS = $(LIBS) $(MALLOC_LIBS) $(MATH_LIBS) $(CC_LIBS)
|
2015-10-02 21:12:35 +02:00
|
|
|
|
2015-11-14 00:11:27 +01:00
|
|
|
LINTFLAGS = $(MACHDEF) -I$(INCDIR)
|