Blame view

Makefile 371 Bytes
ae25085d   henyxia   Output function done
1
  CC=gcc
cdaa873f   henyxia   Log fixed
2
  CC_FLAGS=-c -Wall -Werror -std=gnu99 -g
9c066355   henyxia   USB Initialized
3
  CC_LIBS=-pthread -lusb-1.0
ae25085d   henyxia   Output function done
4
  INCLUDES=
e583b6a9   henyxia   First version
5
  
9c066355   henyxia   USB Initialized
6
  SOURCES=main.c printx.c ui.c serial.c nfc.c bus.c hvc.c heat.c pump.c usb.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)