summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Adrien Schildknecht <adrien+dev@schischi.me>2013-04-24 21:05:53 +0200
committerGravatar Adrien Schildknecht <adrien+dev@schischi.me>2013-04-24 21:05:53 +0200
commit913c08b9aca6680ed8caffec4de098c6c007892e (patch)
treebf9ba537db1dc1329c4aa7ce3db33cf402459060 /Makefile
first commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ca892a8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+CFILES=xcwd.c
+CC=gcc
+CFLAGS=-Wall -Werror -std=gnu89 #-DDEBUG -g
+LDFLAGS=-lX11
+EXE="xcwd"
+O=${CFILES:.c=.o}
+prefix=/usr/
+
+${EXE}: clean ${O}
+ ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${O}
+
+.SUFFIXES: .c .o
+.c.o:
+ ${CC} ${CFLAGS} -c $<
+
+clean:
+ rm -vf *.o
+
+distclean: clean
+ rm -vf ${EXE}
+
+install: ${EXE}
+ install -m 0755 ${EXE} $(prefix)/bin
+