celseed/Makefile
Arigadam 843f1ce8f3 Add celseed: Minecraft seed finder with CEL filter expressions
Single-file C CLI program that searches Minecraft seeds using cubiomes
for biome/structure generation and a built-in CEL-subset expression
evaluator for filtering. Supports all MC versions from Beta 1.7 to 26.3.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-10-13 09:27:20 +00:00

37 lines
801 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)
.PHONY: all clean
all: celseed
celseed: celseed.o $(CUBIOMES_OBJS)
$(CC) -o $@ $^ -lm
celseed.o: celseed.c
$(CC) $(CFLAGS) -Wno-format-truncation -Wno-stringop-truncation -c -o $@ $<
$(CUBIOMES_OBJS): %.o: %.c
$(CC) $(CFLAGS) -Icubiomes -w -c -o $@ $<
clean:
rm -f celseed celseed.o $(CUBIOMES_OBJS)