rework PREFIX for future make install

This commit is contained in:
Philippe Teuwen 2019-08-23 20:55:50 +02:00
commit c709ee7c10
4 changed files with 17 additions and 18 deletions

View file

@ -16,10 +16,14 @@
#include <stddef.h>
#include <stdbool.h>
#ifndef PREFIX
# define PREFIX "/usr/local/"
// brew prefixes are a bit weird so we've to split bin & share to be prepared:
#ifndef PM3_BIN_PATH
# define PM3_BIN_PATH "/usr/local/bin/"
#endif
#define PM3_SYSTEM_DIRECTORY PREFIX "share/proxmark3/"
#ifndef PM3_SHARE_PATH
# define PM3_SHARE_PATH "/usr/local/share/proxmark3/"
#endif
// PM3_USER_DIRECTORY will be expanded as if with a "~" upfront, e.g. ~/.proxmark3/
#define PM3_USER_DIRECTORY "/.proxmark3/"
#define PACKED __attribute__((packed))