diff --git a/.gitignore b/.gitignore
index 69f9bc9cfcdbeacbef0ec6735533d2b367c75372..e96015b29eac87344d5ac99daff0dfb273e70a5d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,5 @@
 *.a
 
 example/test_sglib
+
+\.DS_Store
diff --git a/makefile b/makefile
new file mode 100644
index 0000000000000000000000000000000000000000..24f0782ab43cb04a69c1e3f461ddcf22d31f94c7
--- /dev/null
+++ b/makefile
@@ -0,0 +1,7 @@
+LIBINCLUDE = -I/usr/X11/include
+LIBS = -L/usr/X11/lib
+
+all: Xdraw.c
+	gcc -c Xdraw.c $(LIBINCLUDE) $(LIBS)
+	gnatmake -c sglib.adb
+	ar rc libSglib.a *.o
\ No newline at end of file