summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJérôme Glisse <jglisse@redhat.com>2017-08-12 16:10:17 -0400
committerJérôme Glisse <jglisse@redhat.com>2017-08-12 16:10:17 -0400
commitca39394948c9f78f330c35cc4ba30acd6df8c2ed (patch)
treee14104736d6d3a9e0dac9579586dbf5e28bb27a0 /Makefile
parentc92bc5ceb15d36863f03025620c6ddceba461982 (diff)
compote: split between old way and new way
old way is use device specific memory allocator new way is to use malloc (here we have a limitation due to nouveau the address must be in below 1 << 40 hence why the custom malloc) Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8573309..3f67532 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,13 @@ CFLAGS = -std=c99 -Wall -O0 -g -D_GNU_SOURCE
LFLAGS = -lm
CC = gcc
-all: compote
+all: old new
-compote: compote.o
- $(CC) $(CFLAGS) $< -o $@
+old: compote.o old.o
+ $(CC) $(CFLAGS) $? -o $@
+
+new: compote.o new.o
+ $(CC) $(CFLAGS) $? -o $@
+
+clean:
+ rm old new *.o