mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-10 16:04:04 +09:00
Autokem: CNN-based glyph labeller for Keming Machine
This commit is contained in:
22
Autokem/Makefile
Normal file
22
Autokem/Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Ofast -Wall -Wextra -std=c11
|
||||
LDFLAGS = -lm
|
||||
SRC = main.c tga.c nn.c safetensor.c train.c apply.c
|
||||
OBJ = $(SRC:.c=.o)
|
||||
|
||||
all: autokem
|
||||
|
||||
autokem: $(OBJ)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
debug: CFLAGS = -g -Wall -Wextra -std=c11 -fsanitize=address,undefined
|
||||
debug: LDFLAGS += -fsanitize=address,undefined
|
||||
debug: clean autokem
|
||||
|
||||
clean:
|
||||
rm -f *.o autokem
|
||||
|
||||
.PHONY: all debug clean
|
||||
Reference in New Issue
Block a user