1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,50 @@
+PREFIX ?= /usr
+LIBDIR ?= $(PREFIX)/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+SRC := src/rc_client.c \
+ src/rc_client_raintegration.c \
+ src/rc_compat.c \
+ src/rc_libretro.c \
+ src/rc_util.c \
+ src/rc_version.c \
+ src/rapi/rc_api_common.c \
+ src/rapi/rc_api_editor.c \
+ src/rapi/rc_api_info.c \
+ src/rapi/rc_api_runtime.c \
+ src/rapi/rc_api_user.c \
+ src/rcheevos/alloc.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_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/aes.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)
|