-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.config
44 lines (32 loc) · 1.02 KB
/
Makefile.config
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
# Project name
PROGRAM = baka
# Source code directory
SOURCE_DIR = ./src
# Build directory
BUILD_DIR = ./build
# Subdirectory for the release binary
RELEASE_DIR = $(BUILD_DIR)/release
# Subdirectory for the debug binary
DEBUG_DIR = $(BUILD_DIR)/debug
# List of all source files
SOURCE_FILES = $(wildcard $(SOURCE_DIR)/*.c)
# List of object files
RELEASE_OBJECTS = $(patsubst $(SOURCE_DIR)/%.c, $(RELEASE_DIR)/%.o, $(SOURCE_FILES))
DEBUG_OBJECTS = $(patsubst $(SOURCE_DIR)/%.c, $(DEBUG_DIR)/%.o, $(SOURCE_FILES))
# Any dependent header files
DEPS =
# Any special libraries (needed for build)
LIBS = -lncurses
# Any special header files (needed for build)
INCLUDES =
# Set the compiler
CC = gcc
CC_DEBUG = gcc
# Set any compiler flags
CFLAGS = -std=c99 -Wall -Wextra -O2 -pedantic
CFLAGS_DEBUG = -std=c99 -Wall -Wextra -O0 -g -pedantic
# baka specific variables
# values will be expanded by the shell, so variable like HOME can be used...
BAKA_HOME = $${HOME}/.baka
BAKA_CONFIG = $${HOME}/.baka/config
BAKA_SCRIPT = $${HOME}/bin/baka