forked from gicking/stm8gal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.win
46 lines (34 loc) · 2.06 KB
/
Makefile.win
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
40
41
42
43
44
45
46
# Project: stm8gal
# Makefile created by Dev-C++ 5.11
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
OBJ = Objects/main.o Objects/misc.o Objects/serial_comm.o Objects/bootloader.o Objects/hexfile.o Objects/spi_Arduino_comm.o Objects/verify_CRC32.o
LINKOBJ = Objects/main.o Objects/misc.o Objects/serial_comm.o Objects/bootloader.o Objects/hexfile.o Objects/spi_Arduino_comm.o Objects/verify_CRC32.o
LIBS = -L"C:/Program Files/Dev-Cpp/MinGW64/lib" -L"C:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -static-libgcc
INCS = -I"C:/Program Files/Dev-Cpp/MinGW64/include" -I"C:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"./RAM_Routines/write_erase" -I"./RAM_Routines/verify_CRC32"
CXXINCS = -I"C:/Program Files/Dev-Cpp/MinGW64/include" -I"C:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"C:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++" -I"./RAM_Routines/write_erase" -I"./RAM_Routines/verify_CRC32"
BIN = stm8gal.exe
CXXFLAGS = $(CXXINCS) -std=gnu99
CFLAGS = $(INCS) -std=gnu99
RM = rm.exe -f
.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CC) $(LINKOBJ) -o $(BIN) $(LIBS)
Objects/main.o: main.c
$(CC) -c main.c -o Objects/main.o $(CFLAGS)
Objects/misc.o: misc.c
$(CC) -c misc.c -o Objects/misc.o $(CFLAGS)
Objects/serial_comm.o: serial_comm.c
$(CC) -c serial_comm.c -o Objects/serial_comm.o $(CFLAGS)
Objects/bootloader.o: bootloader.c
$(CC) -c bootloader.c -o Objects/bootloader.o $(CFLAGS)
Objects/hexfile.o: hexfile.c
$(CC) -c hexfile.c -o Objects/hexfile.o $(CFLAGS)
Objects/spi_Arduino_comm.o: spi_Arduino_comm.c
$(CC) -c spi_Arduino_comm.c -o Objects/spi_Arduino_comm.o $(CFLAGS)
Objects/verify_CRC32.o: verify_CRC32.c
$(CC) -c verify_CRC32.c -o Objects/verify_CRC32.o $(CFLAGS)