First commit - second part
Former-commit-id: 202296404e6a70f8ae96db99faffb456104c57e9 Former-commit-id: 118417735d2055683607df9809c9b721cc1b1bab
This commit is contained in:
124
config/default.conf
Normal file
124
config/default.conf
Normal file
@ -0,0 +1,124 @@
|
||||
#
|
||||
# $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
|
||||
#
|
||||
|
||||
PRTDIR = $(CFGDIR)../ports/$(PORTNAME)
|
||||
|
||||
BINDIR = $(PRTDIR)/bin
|
||||
|
||||
LIBDIR = $(PRTDIR)/lib
|
||||
|
||||
# ------------------------------------
|
||||
# default gmake variable in implicit rules
|
||||
# ------------------------------------
|
||||
|
||||
CFLAGS = $(OPTIM) $(MACHDEF) -I$(INCDIR)
|
||||
|
||||
LDFLAGS = -L$(LIBDIR) -L.
|
||||
|
||||
LDLIBS = $(LIBS) $(MALLOC_LIBS) $(MATH_LIBS) $(CC_LIBS)
|
||||
|
||||
LINTFLAGS = $(MACHDEF) -I$(INCDIR)
|
Reference in New Issue
Block a user