- Progress bar (deps/log.c submodule added): * Unicode block chars (██░░), braille spinner for indeterminate mode * Shows: percentage, found/total, seeds/sec (EMA), ETA * Auto-enables on TTY, suppressed when piped * Clears and redraws cleanly around log messages and matches - Logging via rxi/log.c: * Timestamped, colored levels: TRACE DEBUG INFO WARN ERROR FATAL * --log-level trace|debug|info|warn|error|off * --log-file FILE for persistent log (full timestamps, no colors) - New flags: --no-progress, --progress (force), --log-level, --log-file Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
42 lines
949 B
Makefile
42 lines
949 B
Makefile
CC = gcc
|
|
CFLAGS = -O2 -Wall -Wextra -std=c11
|
|
|
|
CUBIOMES_SRCS = \
|
|
cubiomes/biomenoise.c \
|
|
cubiomes/biomes.c \
|
|
cubiomes/finders.c \
|
|
cubiomes/generator.c \
|
|
cubiomes/layers.c \
|
|
cubiomes/noise.c \
|
|
cubiomes/quadbase.c \
|
|
cubiomes/terrainnoise.c \
|
|
cubiomes/util.c \
|
|
cubiomes/xradv.c \
|
|
cubiomes/features/abandoned_camp.c \
|
|
cubiomes/features/end_city.c \
|
|
cubiomes/features/fortress.c \
|
|
cubiomes/features/ore.c \
|
|
cubiomes/features/stronghold.c
|
|
|
|
CUBIOMES_OBJS = $(CUBIOMES_SRCS:.c=.o)
|
|
|
|
LOG_OBJ = deps/log.c/src/log.o
|
|
|
|
.PHONY: all clean
|
|
|
|
all: celseed
|
|
|
|
celseed: celseed.o $(CUBIOMES_OBJS) $(LOG_OBJ)
|
|
$(CC) -o $@ $^ -lm
|
|
|
|
celseed.o: celseed.c
|
|
$(CC) $(CFLAGS) -Wno-format-truncation -Wno-stringop-truncation -Wno-misleading-indentation -c -o $@ $<
|
|
|
|
$(CUBIOMES_OBJS): %.o: %.c
|
|
$(CC) $(CFLAGS) -Icubiomes -w -c -o $@ $<
|
|
|
|
$(LOG_OBJ): deps/log.c/src/log.c
|
|
$(CC) $(CFLAGS) -w -c -o $@ $<
|
|
|
|
clean:
|
|
rm -f celseed celseed.o $(CUBIOMES_OBJS) $(LOG_OBJ)
|