Blame view

Makefile 326 Bytes
ae25085d   henyxia   Output function done
1
  CC=gcc
cdaa873f   henyxia   Log fixed
2
3
  CC_FLAGS=-c -Wall -Werror -std=gnu99 -g
  CC_LIBS=-pthread
ae25085d   henyxia   Output function done
4
  INCLUDES=
e583b6a9   henyxia   First version
5
  
d4d5bb6d   henyxia   Bus working
6
  SOURCES=main.c printx.c ui.c nfc.c bus.c
e583b6a9   henyxia   First version
7
  OBJECTS=$(SOURCES:.c=.o)
e583b6a9   henyxia   First version
8
9
10
11
12
13
14
15
  OUTPUT=tweekd
  
  all: $(SOURCES) $(OUTPUT)
  
  $(OUTPUT): $(OBJECTS)
  	$(CC) $(OBJECTS) $(CC_LIBS) -o $@
  
  %.o: %.c
ae25085d   henyxia   Output function done
16
  	$(CC) $(INCLUDES) $(CC_FLAGS) $< -o $@
e583b6a9   henyxia   First version
17
18
19
  
  clear:
  	rm -f $(OUTPUT) $(OBJECTS)