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
|
|
9e9f365e
henyxia
Added HVC interface
|
6
|
SOURCES=main.c printx.c ui.c serial.c nfc.c bus.c hvc.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)
|