Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,40 @@ version.h
test
newtest
*.o
*.lo
*.la
*.a
*.swp

Makefile
Makefile.in
aclocal.m4
ar-lib
autom4te.cache/
compile
config.guess
config.h
config.h.in
config.h.in~
config.log
config.status
config.sub
configure
configure~
depcomp
install-sh
libtool
ltmain.sh
missing
src/.deps/
src/.libs/
src/Makefile
src/Makefile.in
src/libws2811.pc

stamp-h1

build/
release/
debug/
settings.json
settings.json
88 changes: 0 additions & 88 deletions CMakeLists.txt

This file was deleted.

26 changes: 26 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Top-level Makefile.am

SUBDIRS = src


# Files to remove with 'make distclean'
DISTCLEANFILES =
distclean-local:
-rm -rf Makefile.in \
aclocal.m4\
ar-lib\
autom4te.cache\
compile\
config.guess\
config.h.in\
config.h.in~\
config.sub\
configure\
configure.ac~\
configure~\
depcomp\
install-sh\
libws2811.pc\
ltmain.sh\
missing\
src/Makefile.in
95 changes: 0 additions & 95 deletions SConscript

This file was deleted.

77 changes: 0 additions & 77 deletions SConstruct

This file was deleted.

38 changes: 38 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/sh
set -e

# Optional: detect and error if required tools are missing
for tool in autoconf automake libtool pkg-config; do
if ! command -v $tool >/dev/null 2>&1; then
echo "Error: $tool not found. Please install it." >&2
exit 1
fi
done

# Optionally clean up old generated files
rm -f configure aclocal.m4 ltmain.sh libtool config.guess config.sub

echo "Running aclocal..."
aclocal

echo "Running autoheader..."
autoheader

echo "Running libtoolize..."
libtoolize --copy --force

echo "Running automake..."
automake --add-missing --copy

echo "Running autoconf..."
autoconf

echo "Generating configure script done."

# Run ./configure if desired
if [ "$1" = "--configure" ]; then
shift
echo "Running ./configure $@"
./configure "$@"
fi

Loading