diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..75dd6cb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,45 @@
+PREFIX ?= /usr
+LIBDIR ?= $(PREFIX)/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+SRC := src/rapi/rc_api_common.c \
+	src/rapi/rc_api_info.c \
+	src/rapi/rc_api_user.c \
+	src/rapi/rc_api_editor.c \
+	src/rapi/rc_api_runtime.c \
+	src/rcheevos/alloc.c \
+	src/rcheevos/compat.c \
+	src/rcheevos/condition.c \
+	src/rcheevos/condset.c \
+	src/rcheevos/consoleinfo.c \
+	src/rcheevos/format.c \
+	src/rcheevos/lboard.c \
+	src/rcheevos/memref.c \
+	src/rcheevos/operand.c \
+	src/rcheevos/rc_libretro.c \
+	src/rcheevos/rc_validate.c \
+	src/rcheevos/richpresence.c \
+	src/rcheevos/runtime.c \
+	src/rcheevos/runtime_progress.c \
+	src/rcheevos/trigger.c \
+	src/rcheevos/value.c \
+	src/rhash/cdreader.c \
+	src/rhash/hash.c \
+	src/rhash/md5.c \
+	src/rurl/url.c
+OBJ = $(SRC:.c=.o)
+
+CFLAGS += -fPIC -Iinclude -I/usr/include/libretro-common -DRC_DISABLE_LUA
+
+all: rcheevoslib.a
+
+install:
+	install -d $(DESTDIR)$(LIBDIR)
+	install -m 644 rcheevoslib.a $(DESTDIR)$(LIBDIR)
+	install -d $(DESTDIR)$(PREFIX)/include/rcheevos
+	install -m 644 include/*.h $(DESTDIR)$(PREFIX)/include/rcheevos
+
+clean:
+	rm -f $(OBJ) rcheevoslib.a
+
+rcheevoslib.a: $(OBJ)
+	$(AR) rcs rcheevoslib.a $(OBJ)
