blob: ea89197f4e2a323fdb44d57052a7fe4d7af34576 (
plain) (
blame)
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
|
CC = clang
CFLAGS = -std=c2x -Wall -Wextra -Wpedantic -I include -march=native -mtune=native -O3
ifneq ($(debug),1)
CFLAGS += -DNDEBUG
else
CFLAGS += -g
endif
LDFLAGS =
SRCS = \
src/luma/print.c \
src/luma/utf8dec.c \
src/luma/utf8enc.c \
src/main.c
HDRS = \
include/luma/arch.h \
include/luma/print.h \
include/luma/utf8dec.h \
include/luma/utf8enc.h
OBJS = $(SRCS:.c=.o)
luma: $(OBJS)
$(CC) $(LDFLAGS) $^ -o $@
$(OBJS): $(HDRS)
.PHONY: run
run: luma
./luma
.PHONY: clean
clean:
rm $(OBJS)
.PHONT: purge
purge:
rm luma $(OBJS)
|