-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 725 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 725 Bytes
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
# ******************************** #
# Author: Brhaka #
# #
# #
# github.com/brhaka/ImageToASCII #
# ******************************** #
SRCS := ./image_to_ascii.c
NAME := ImageToASCII
USE_COLORS = 1
all: LINUX MACOS WIN
$(NAME): LINUX MACOS WIN
LINUX:
gcc $(SRCS) -static -lm -D USE_COLORS=$(USE_COLORS) -o $(NAME)-Linux
MACOS:
gcc $(SRCS) -lm -D USE_COLORS=$(USE_COLORS) -o $(NAME)-MacOS
WIN:
i686-w64-mingw32-g++ $(SRCS) --static -D USE_COLORS=$(USE_COLORS) -o $(NAME)-Windows_x86_x64
clean:
rm -f $(NAME)-Linux
rm -f $(NAME)-MacOS
rm -f $(NAME)-Windows_x86_x64.exe
re: clean $(NAME)
.PHONY: re clean WIN MACOS LINUX all