default.conf 2.44 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
#
# $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
106
# INCDIR : port includes
107 108 109 110
#

PRTDIR   =	$(CFGDIR)../ports/$(PORTNAME)

111
BINDIR   =  $(abspath $(PRTDIR))/bin
112

113 114 115
LIBDIR	 =	$(abspath $(PRTDIR))/lib

INCDIR	 =	$(abspath $(PRTDIR))/include
116 117 118 119 120

# ------------------------------------
# default gmake variable in implicit rules
# ------------------------------------

Alain Viari committed
121 122
#CFLAGS 	  := $(CFLAGS) $(OPTIM) $(MACHDEF) -I$(INCDIR)
CFLAGS 	  = $(OPTIM) $(MACHDEF) -I$(INCDIR)
123

Alain Viari committed
124 125
#LDFLAGS	  := $(LDFLAGS) -L$(LIBDIR) -L.
LDFLAGS	  = -L$(LIBDIR) -L.
126

Alain Viari committed
127
LDLIBS	  =	$(LIBS) $(MALLOC_LIBS) $(MATH_LIBS) $(CC_LIBS)
128

Alain Viari committed
129
LINTFLAGS = $(MACHDEF) -I$(INCDIR)