From a1b97c17ef7582f307337b3508639e7a2ddd6353 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Tue, 27 Jan 2026 19:18:42 +0000 Subject: [PATCH] word dir can't be more than 8 chars; removing cmakelists --- CMakeLists.txt | 27 --------------------------- Makefile | 8 ++++---- include/platform.h | 11 ++++++----- 3 files changed, 10 insertions(+), 36 deletions(-) delete mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 2b5962a..0000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,27 +0,0 @@ -cmake_minimum_required(VERSION 3.10) -project(cordle C) - -# NOTE: This CMakeLists.txt is provided for IDE integration (CLion, VSCode, etc.) -# For production builds and installation, use the Makefile instead: -# - make (build) -# - make install (system-wide installation) -# - make help (see all targets) - -# Pure C90 configuration -set(CMAKE_C_STANDARD 90) -set(CMAKE_C_STANDARD_REQUIRED ON) -set(CMAKE_C_EXTENSIONS OFF) - -# Pedantic C90 compiler flags -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c90 -pedantic -Wpedantic -Wall -Wextra") - -# Include directories -include_directories(include) - -# Executable -add_executable(cordle - src/main.c - src/game.c - src/ui.c - src/words.c -) diff --git a/Makefile b/Makefile index 350b23b..7b6f70c 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ OBJS = $(SRCS:$(SRC_DIR)/%.c=$(BUILD_DIR)/%.o) TARGET = $(BUILD_DIR)/cordle$(TARGET_EXT) # Default target -all: $(TARGET) wordlists +all: $(TARGET) words # Create build directory $(BUILD_DIR): @@ -48,8 +48,8 @@ $(TARGET): $(OBJS) $(CC) $(OBJS) $(LDFLAGS) -o $(TARGET) # Copy wordlists to build directory -wordlists: $(TARGET) - cp -R wordlists $(BUILD_DIR)/ +words: $(TARGET) + cp -R words $(BUILD_DIR)/ # Clean build artifacts clean: @@ -60,7 +60,7 @@ install: all install -d $(INSTALL_DIR)/bin install -m 755 $(TARGET) $(INSTALL_DIR)/bin/cordle install -d $(INSTALL_DIR)/share/cordle - cp -R wordlists $(INSTALL_DIR)/share/cordle/ + cp -R words $(INSTALL_DIR)/share/cordle/ # Uninstall the game uninstall: diff --git a/include/platform.h b/include/platform.h index 0652811..8907316 100644 --- a/include/platform.h +++ b/include/platform.h @@ -17,8 +17,9 @@ /* DOS path definitions */ #define PATH_SEP "\\" - #define WORDLIST_PATH_1 "wordlists" - #define WORDLIST_PATH_2 "C:\\CORDLE\\wordlists" + #define WORDLIST_PATH_1 "words" + #define WORDLIST_PATH_2 "C:\\CORDLE\\words" + #define WORDLIST_PATH_4 "D:\\CORDLE\\words" #define WORDLIST_PATH_3 NULL /* DOS doesn't have HOME environment variable */ @@ -29,9 +30,9 @@ /* Unix path definitions */ #define PATH_SEP "/" - #define WORDLIST_PATH_1 "wordlists" - #define WORDLIST_PATH_2 "/usr/local/share/cordle/wordlists" - #define WORDLIST_PATH_3_FMT "%s/.local/share/cordle/wordlists" + #define WORDLIST_PATH_1 "words" + #define WORDLIST_PATH_2 "/usr/local/share/cordle/words" + #define WORDLIST_PATH_3_FMT "%s/.local/share/cordle/words" #define HAS_HOME_ENV 1 #endif