Blame view

Makefile 641 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
8ecde263   henyxia   Added main view
7
  BMP=img/home.bmp img/main.bmp
ef5bbf07   henyxia   Automatic BMP gen...
8
  MAP_SRC=
e583b6a9   henyxia   First version
9
  OBJECTS=$(SOURCES:.c=.o)
ef5bbf07   henyxia   Automatic BMP gen...
10
11
12
13
  BMPR=$(BMP:.bmp=.bmpr)
  RGB=$(BMPR:.bmpr=.rgb)
  MAP=$(MAP_SRC:.bmp=.map)
  BOZ=$(RGB:.rgb=.boz)
e583b6a9   henyxia   First version
14
15
  OUTPUT=tweekd
  
8ecde263   henyxia   Added main view
16
  all: $(SOURCES) $(BMP) $(OUTPUT)
ef5bbf07   henyxia   Automatic BMP gen...
17
  
8ecde263   henyxia   Added main view
18
19
20
21
22
23
24
  $(OUTPUT): $(BOZ) $(OBJECTS)
  	$(CC) $(OBJECTS) $(CC_LIBS) -o $@
  
  %.o: %.c
  	$(CC) $(INCLUDES) $(CC_FLAGS) $< -o $@
  
  %.bmpr: %.bmp
ef5bbf07   henyxia   Automatic BMP gen...
25
26
  	convert -flip $< $@
  
8ecde263   henyxia   Added main view
27
  %.rgb: %.bmpr
ef5bbf07   henyxia   Automatic BMP gen...
28
29
  	bmp2rgb565 $< $@
  
8ecde263   henyxia   Added main view
30
  %.boz: %.rgb
ef5bbf07   henyxia   Automatic BMP gen...
31
  	cat $< > $@
e583b6a9   henyxia   First version
32
  
e583b6a9   henyxia   First version
33
  clear:
ef5bbf07   henyxia   Automatic BMP gen...
34
  	rm -f $(OUTPUT) $(OBJECTS) $(BOZ) $(BMPR) $(MAP) $(RGB)