-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.win
34 lines (26 loc) · 1.2 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
# Project: date_time
# Makefile created by Dev-C++ 5.11
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
OBJ = main.o strptime.o strftime.o
LINKOBJ = main.o strptime.o strftime.o
LIBS = -L"C:/TDM-GCC-64/lib" -L"C:/TDM-GCC-64/x86_64-w64-mingw32/lib" -static-libgcc -m64
INCS = -I"C:/TDM-GCC-64/include" -I"C:/TDM-GCC-64/x86_64-w64-mingw32/include" -I"C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/10.3.0/include"
CXXINCS = -I"C:/TDM-GCC-64/include" -I"C:/TDM-GCC-64/x86_64-w64-mingw32/include" -I"C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/10.3.0/include" -I"C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/10.3.0/include/c++"
BIN = date_time.exe
CXXFLAGS = $(CXXINCS) -march=native -Ofast -m64 -std=c99 -Wall -Wextra
CFLAGS = $(INCS) -march=native -Ofast -m64 -std=c99 -Wall -Wextra
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)
main.o: main.c
$(CC) -c main.c -o main.o $(CFLAGS)
strptime.o: strptime.c
$(CC) -c strptime.c -o strptime.o $(CFLAGS)
strftime.o: strftime.c
$(CC) -c strftime.c -o strftime.o $(CFLAGS)