aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-11 16:49:36 +0200
committerMattias Andrée <maandree@kth.se>2016-07-11 16:49:36 +0200
commit5fedc38518bb9198e23ad8ee7c435b06be7b7026 (patch)
tree04bf17acb1547f7f035202e201e5a9afe6e295cd /Makefile
parentClose file descriptors (diff)
downloadcoopgammad-5fedc38518bb9198e23ad8ee7c435b06be7b7026.tar.gz
coopgammad-5fedc38518bb9198e23ad8ee7c435b06be7b7026.tar.bz2
coopgammad-5fedc38518bb9198e23ad8ee7c435b06be7b7026.tar.xz
Do not require /proc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8d6abff..a25208d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
PKGNAME = gammad
-COMmAND = gammad
+COMMAND = gammad
+KERNEL = linux
SRC = filter gammad output ramps util
@@ -18,9 +19,12 @@ WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissi
FFLAGS = -fstrict-aliasing -fstrict-overflow -fipa-pure-const -ftree-vrp -fstack-usage \
-funsafe-loop-optimizations
+CPP_linux = -DHAVE_LINUX_PROCFS
+CPP_linux-libre = $(CPP_linux)
+
CCFLAGS = -std=c99 $(WARN) $(FFLAGS) $(OPTIMISE)
LDFLAGS = $(OPTIMISE) -lgamma
-CPPFLAGS = -D'PKGNAME="$(PKGNAME)"' -D'COMMAND="$(COMMAND)"' -D_XOPEN_SOURCE=700
+CPPFLAGS = -D'PKGNAME="$(PKGNAME)"' -D'COMMAND="$(COMMAND)"' -D_XOPEN_SOURCE=700 $(CPP_$(KERNEL))
.PHONY: all