Update worldgen exporter features

This commit is contained in:
chelsea
2026-05-02 13:54:15 -05:00
parent 5bb1e05acf
commit 2f11a5b5fa
9 changed files with 320 additions and 27 deletions

View File

@@ -7,16 +7,22 @@ OBJ := $(SRC:.c=.o)
BIN_DIR := bin
TARGET := $(BIN_DIR)/worldgen
SCAN_TARGET := $(BIN_DIR)/worldgen-scan
all: $(TARGET)
$(TARGET): $(OBJ) | $(BIN_DIR)
$(CC) $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS)
$(SCAN_TARGET): tools/worldgen_scan.o src/worldgen.o src/noise.o | $(BIN_DIR)
$(CC) $(CFLAGS) tools/worldgen_scan.o src/worldgen.o src/noise.o -o $@ $(LDFLAGS)
$(BIN_DIR):
mkdir -p $(BIN_DIR)
clean:
rm -f $(OBJ) $(TARGET)
rm -f $(OBJ) tools/worldgen_scan.o $(TARGET) $(SCAN_TARGET)
.PHONY: all clean
scan: $(SCAN_TARGET)
.PHONY: all clean scan