summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-09-30 14:33:44 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-09-30 14:33:44 +0100
commita6eb29db6d5372ecf0f037b8fa78be73082075ea (patch)
tree1bcb0fa0a96ec11f918a9e7641499acb82604a11
parentda41776e632c8ed6c02a496aa6b96d9311b59717 (diff)
add makefile, copied from ev
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ec5234d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
1PREFIX ?= /usr/local
2DOCDIR ?= $(PREFIX)/share/doc/compbench
3
4CC ?= gcc
5CFLAGS ?= -O0 -pipe -Wall -Wextra -g
6SHELL = /bin/sh
7LIBS = $(shell pkg-config --cflags --libs elementary efx)
8
9compbench: compbench.c
10 $(CC) -o $@ $< $(CFLAGS) $(LIBS)
11
12install: compbench
13 mkdir -p $(DESTDIR)$(PREFIX)/bin
14 install -m755 $< $(DESTDIR)$(PREFIX)/bin/
15 mkdir -p $(DESTDIR)$(DOCDIR)
16 install -m644 AUTHORS COPYING README $(DESTDIR)$(DOCDIR)/
17
18.PHONY: clean uninstall
19
20clean:
21 rm -f compbench *.o
22
23uninstall:
24 rm -f $(DESTDIR)$(PREFIX)/bin/compbench
25 rm -f $(DESTDIR)$(DOCDIR)/*
26 rmdir $(DESTDIR)$(DOCDIR)