Blame view

Makefile 393 Bytes
e583b6a9   henyxia   First version
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)