forked from deadpixi/sam
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.mk.def
More file actions
43 lines (33 loc) · 1.09 KB
/
config.mk.def
File metadata and controls
43 lines (33 loc) · 1.09 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# config.mk - makefile configuration for sam
# copyright 2015 Rob King <jking@deadpixi.com>
# Get OS for specific dependencies
UNAME := $(shell uname)
# CC is the C compiler to use
CC=gcc
CFLAGS?=
CFLAGS+=-std=c99
# STANDARDS names the C preprocessor defines that need to
# be present to get a more-or-less standard compilation
# environment.
STANDARDS=-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500
ifeq ($(UNAME), Darwin)
OSVERSION := $(shell sw_vers | awk '($$1 = /ProductVersion:/){ ($$2 < 10.7) ? source = "-D_ANSI_SOURCE" : source = "-D_DARWIN_C_SOURCE"; print source }')
STANDARDS+=$(OSVERSION)
endif
# DESTDIR is the root of the installation tree
DESTDIR?=/usr/local
# BINDIR is the directory where binaries go
BINDIR?=$(DESTDIR)/bin
# MANDIR is where manual pages go
MANDIR?=$(DESTDIR)/share/man/
# Add additional include and library directories
INCLUDES=
LDFLAGS=
ifeq ($(UNAME), Darwin)
INCLUDES+=-I/usr/X11R6/include -I/usr/X11R6/include/freetype2
LDFLAGS+=-L/usr/X11R6/lib
else
INCLUDES+=-I/usr/include/freetype2
endif
# Set this to your default remote shell.
RXPATH=/usr/bin/ssh