Ticket #337: make.conf

File make.conf, 496 bytes (added by vans, 4 years ago)

Example of the make.conf with the conditinal set of flags for different ports.

Line 
1CPUTYPE?=core2
2.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc45) \
3  && empty(.CURDIR:M/usr/ports/devel/libtool22*)
4
5  CC=gcc45
6  CXX=g++45
7  CPP=cpp45
8. if !empty(.CURDIR:M/usr/ports/databases/db48/) \
9    || !empty(.CURDIR:M/usr/ports/math/gmp/)
10    CFLAGS+=-O3
11. elif !empty(.CURDIR:M/usr/ports/here/are/ports/with/o2/flto/)
12    CFLAGS+=-flto
13. elif !empty(.CURDIR:M/usr/ports/here/are/ports/with/just/o2/)
14   
15. else
16    CFLAGS+=-O3 -flto
17. endif
18.endif
19CFLAGS+=-mfpmath=sse