summaryrefslogtreecommitdiff
path: root/Make.defs
blob: 644029c1261ce212fdcb084852394a6d80b62f31 (plain)
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

WALLP =-Wtraditional -Wshadow -Wid-clash-14 -Wpointer-arith \
       -Wcast-qual -Wcast-align -Wconversion -Waggregate-return \
       -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls \
       -Wnested-externs -Winline 

# unproto is yukky, I've included '-w' in the local makefile.
WALL  =-Wstrict-prototypes

ifeq ($(CC),cc)
CC	=gcc
CCFLAGS	=-Wall $(WALL) -O2 -fno-strength-reduce
else
CCFLAGS =-O
endif

CFLAGS  =$(CCFLAGS)
LDFLAGS	=-s

export DIST
export BINDIR	=$(DIST)/usr/bin
export MANDIR	=$(DIST)/usr/man
export BCCROOT  =/usr/bcc
export BCCHOME	=$(DIST)$(BCCROOT)
export LIBDIR	=$(BCCHOME)/lib/bcc
export ELKSSRC  =/usr/src/linuxmt