Compare commits

..

No commits in common. "a735950c678804967bcbd9e3ec7c72165363ad04" and "8c6395592d3b099e22e8fd7538c140bfe680a34e" have entirely different histories.

6 changed files with 12 additions and 12 deletions

2
.gitignore vendored
View File

@ -3,4 +3,4 @@ build/
csnake
*.core
include/config.h
include/config.mk
config.mk

View File

@ -32,7 +32,4 @@ set(DEFX 0 CACHE STRING "Start x")
set(DEFY 0 CACHE STRING "Start y")
set(SLEEP 1000 CACHE STRING "Sleep between frames (ms)")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/templates/config.h.in
${CMAKE_CURRENT_SOURCE_DIR}/include/config.h
)
configure_file(include/config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/include/config.h)

View File

@ -1,4 +1,4 @@
include include/config.mk
include config.mk
INCLUDE = -Iinclude
RM = rm -f

11
configure vendored
View File

@ -45,5 +45,12 @@ echo "Start x: $DEFX"
echo "Start y: $DEFY"
echo "Sleep: $SLEEP"
eval "echo \"$(cat templates/config.mk.in)\"" > include/config.mk
eval "echo \"$(cat templates/config.h.in)\"" > include/config.h
echo "CC = $CC
CFLAGS = $CFLAGS
LDFLAGS = $LDFLAGS
OUT = $OUT" > config.mk
echo "#define FIELD_SIZE $FIELD_SIZE
#define DEFX $DEFX
#define DEFY $DEFY
#define SLEEP $SLEEP" > include/config.h

View File

@ -1,4 +0,0 @@
CC = ${CC}
CFLAGS = ${CFLAGS}
LDFLAGS = ${LDFLAGS}
OUT = ${OUT}