introduce PREFIX for pm3 system directory and move to common.h

This commit is contained in:
Philippe Teuwen 2019-08-22 19:36:20 +02:00
commit 595b8a1885
4 changed files with 23 additions and 19 deletions

View file

@ -16,6 +16,12 @@
#include <stddef.h>
#include <stdbool.h>
#ifndef PREFIX
# define PREFIX "/usr/local/"
#endif
#define PM3_SYSTEM_DIRECTORY PREFIX "share/proxmark3/"
#define PM3_USER_DIRECTORY "/.proxmark3/"
#define PACKED __attribute__((packed))
// debug