word dir can't be more than 8 chars; removing cmakelists
This commit is contained in:
parent
8315951daf
commit
a1b97c17ef
@ -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
|
||||
)
|
||||
8
Makefile
8
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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user