-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (18 loc) · 750 Bytes
/
Makefile
File metadata and controls
28 lines (18 loc) · 750 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
# akifiletable makefile
AKIFILETABLE_TARGET := akifiletable
AKIFILETABLE_DEBUG_TARGET := akifiletable_d
AKIFILETABLE_SRC_FILES := frozen.c akifiletable.c
AKIFILETABLE_DEFAULT_OUTPUT_FILES := filetable.bin filetable.idx filetable.h
CFLAGS := -Wall -Wextra -s -O2
CFLAGS_DEBUG := -Wall -Wextra -g -Og -DDEBUG
default: release
all: release debug
release: $(AKIFILETABLE_TARGET)
debug: $(AKIFILETABLE_DEBUG_TARGET)
$(AKIFILETABLE_TARGET): $(AKIFILETABLE_SRC_FILES)
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
$(AKIFILETABLE_DEBUG_TARGET): $(AKIFILETABLE_SRC_FILES)
$(CC) $(CFLAGS_DEBUG) $^ $(LDFLAGS) -o $@
clean:
rm -f $(AKIFILETABLE_TARGET) $(AKIFILETABLE_DEBUG_TARGET) $(AKIFILETABLE_DEFAULT_OUTPUT_FILES)
.PHONY: all clean default release debug