diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..525a40d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.swp +*.o +tweekd diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dc48b2d --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC= gcc +CC_FLAGS=-c -Wall -Werror -g +CC_LIBS=$(NFC_PROXMARK_LIB) +INCLUDES=-I../nfc_proxmark3_driver + +SOURCES=main.c +OBJECTS=$(SOURCES:.c=.o) +NFC_PROXMARK_LIB=-L../nfc_proxmark3_driver -lnfcproxmark3driver +OUTPUT=tweekd + +all: $(SOURCES) $(OUTPUT) + +$(OUTPUT): $(OBJECTS) + $(CC) $(OBJECTS) $(CC_LIBS) -o $@ + +%.o: %.c + $(CC) -c $(INCLUDES) $(CC_FLAGS) $< -o $@ + +clear: + rm -f $(OUTPUT) $(OBJECTS) diff --git a/main.c b/main.c new file mode 100644 index 0000000..055149e --- /dev/null +++ b/main.c @@ -0,0 +1,17 @@ +#include +#include +#include + +int main(void) +{ + printf("Tweekd starting\n"); + if(initializeProxmark() != 0) + { + printf("Initialization failed\n"); + return 1; + } + printf("[NFC]\t: HW version\n"); + proxVersion(); + stopProxmark(); + return 0; +} -- libgit2 0.21.2