-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (27 loc) · 872 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
GCC=g++
CFLAGS=-g -Wall -Wunused-variable -Wshadow -Wconversion
TARGET=HanshowFlasher
OBJS=HanshowFlasher.o Serial.o MCUTools.o TelinkFile.o FileUtils.o Logger.o
INCDIR=-I./
LIBDIR=-L./
all: $(TARGET)
$(TARGET): $(OBJS)
$(GCC) $(CFLAGS) $(LIBDIR) -o $(TARGET) $(OBJS) -lm
HanshowFlasher.o: HanshowFlasher.cpp HanshowFlasher.h
$(GCC) $(CFLAGS) $(INCDIR) -c HanshowFlasher.cpp
Serial.o: Serial.cpp Serial.h
$(GCC) $(CFLAGS) $(INCDIR) -c Serial.cpp
MCUTools.o: MCUTools.cpp MCUTools.h
$(GCC) $(CFLAGS) $(INCDIR) -c MCUTools.cpp
TelinkFile.o: TelinkFile.cpp TelinkFile.h
$(GCC) $(CFLAGS) $(INCDIR) -c TelinkFile.cpp
FileUtils.o: FileUtils.cpp FileUtils.h
$(GCC) $(CFLAGS) $(INCDIR) -c FileUtils.cpp
Logger.o: Logger.cpp Logger.h
$(GCC) $(CFLAGS) $(INCDIR) -c Logger.cpp
.phony clean:
clean:
@echo "Cleaning..."
@rm -f *.o
@rm -f $(TARGET)
@echo "Done"