Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 52 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 52 Rev 57
Line 31... Line 31...
31
# Location of make program (GNU make required)
31
# Location of make program (GNU make required)
32
MAKE         = make
32
MAKE         = make
33
# Location of install program (GNU install or compatible required)
33
# Location of install program (GNU install or compatible required)
34
INSTALL      = install
34
INSTALL      = install
35
35
36
# Base Compiler options for GCC (use CPPFLAGS and LDFLAGS if passed in)
36
# Base Compiler options for GCC (use CFLAGS, CPPFLAGS and LDFLAGS if passed in)
37
ifdef CPPFLAGS
-
 
38
  BASECFLAGS   = $(CPPFLAGS)
37
BASECFLAGS   := $(CFLAGS)
39
else
-
 
40
  BASECFLAGS   = -Wall -g -O2
38
BASECFLAGS   ?= -Wall -g -O2
41
endif
-
 
42
ifdef INCLUDES
-
 
43
  BASECFLAGS += $(INCLUDES)
39
BASECFLAGS   += $(CPPFLAGS)
44
endif
40
45
ifdef LDFLAGS
-
 
46
 BASELDFLAGS  = $(LDFLAGS)
41
BASELDFLAGS  := $(LDFLAGS)
47
else
-
 
48
 BASELDFLAGS  = -g
42
BASELDFLAGS  ?= -g
49
endif
-
 
50
43
51
# Minimal libraries needed by Linux
44
# Minimal libraries needed by Linux
52
BASE_LIBS    = -lcrypt
45
BASE_LIBS    = -lcrypt
53
# FreeBSD needs some extra libraries:
46
# FreeBSD needs some extra libraries:
54
# BASE_LIBS   = -lcrypt -liconv -lutil
47
# BASE_LIBS   = -lcrypt -liconv -lutil