File: Make.defaults

package info (click to toggle)
efivar 0.15-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 428 kB
  • ctags: 267
  • sloc: ansic: 1,985; makefile: 140; asm: 31
file content (26 lines) | stat: -rw-r--r-- 800 bytes parent folder | download
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
INSTALL ?= install
libdir	?= /usr/lib64/
mandir	?= /usr/share/man/
includedir	?= /usr/include/
bindir	?= /usr/bin/
PCDIR	?= $(libdir)/pkgconfig/
CC	:= $(if $(filter default,$(origin CC)),gcc,$(CC))
CCLD	:= $(if $(filter undefined,$(origin CCLD)),$(CC),$(CCLD))
CFLAGS	?= -O0 -g

ARCH = $(shell uname -m)
clang_cflags =
gcc_cflags = -Wmaybe-uninitialized
cflags	:= $(CFLAGS) \
	-Wall -Wsign-compare -std=gnu11 -fshort-wchar -fPIC \
	-D_GNU_SOURCE -I${TOPDIR}/src/ \
	$(if $(filter $(CC),clang),$(clang_cflags),) \
	$(if $(filter $(CC),gcc),$(gcc_cflags),)
clang_ccldflags =
gcc_ccldflags = -fno-merge-constants
ccldflags := $(cflags) $(CCLDFLAGS) $(LDFLAGS) \
	$(if $(filter $(CCLD),clang),$(clang_ccldflags),) \
	$(if $(filter $(CCLD),gcc),$(gcc_ccldflags),)
LIBFLAGS += -shared

SONAME_VERSION := 0