-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (35 loc) · 1002 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
40
41
42
43
44
45
46
#*******************************************************************************
# PROJECT: Hexagones
#
# AUTHOR: Yohann Martin
#
# DATE CREATED: 07/04/2019
#
# Copyright (c) 2019 Yohann MARTIN (@Astropilot). All rights reserved.
#
# Licensed under the MIT License. See LICENSE file in the project root for full
# license information.
#*******************************************************************************
CC = gcc
PKGCONFIG = $(shell which pkg-config)
GTK_CFLAGS = $(shell $(PKGCONFIG) --cflags gtk+-3.0)
CFLAGS = -Wall -Wextra -Werror -g -Iincludes/ $(GTK_CFLAGS)
LIBS = $(shell $(PKGCONFIG) --libs gtk+-3.0)
TARGET = hexagones
RM = rm -f
SRC = \
$(wildcard src/struct/*.c) \
$(wildcard src/pathfinding/*.c) \
$(wildcard src/model/*.c) \
$(wildcard src/ui/*.c) \
$(wildcard src/*.c)
OBJ = $(SRC:.c=.o)
all: $(TARGET)
$(TARGET): $(OBJ)
$(CC) $(OBJ) -o $(TARGET) $(LIBS) -lm
.PHONY: clean fclean re
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(TARGET)
re: fclean all