-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:justin-marian/casamonitor
- Loading branch information
Showing
5 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get install -y autoconf automake libtool | ||
|
||
- name: Check for configure.ac | ||
run: | | ||
if [ ! -f configure.ac ]; then | ||
echo "Error: configure.ac not found!" | ||
exit 1 | ||
fi | ||
- name: Generate aclocal.m4 | ||
run: aclocal | ||
|
||
- name: Add missing auxiliary files | ||
run: automake --add-missing --copy | ||
|
||
- name: Generate configure script | ||
run: autoconf | ||
|
||
- name: Run configure script | ||
run: ./configure | ||
|
||
- name: Build | ||
run: make | ||
|
||
- name: Check | ||
run: make check | ||
|
||
- name: Distcheck | ||
run: make distcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
AUTOMAKE_OPTIONS = foreign subdir-objects | ||
|
||
# Define the subdirectories | ||
SUBDIRS = include src | ||
|
||
# Include directories | ||
AM_CPPFLAGS = -I$(srcdir)/include | ||
|
||
# Define the program to be built | ||
bin_PROGRAMS = main | ||
|
||
# Additional flags and libraries | ||
main_CXXFLAGS = -Wall -g $(AM_CPPFLAGS) | ||
main_LDADD = -lm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
AC_PREREQ([2.69]) | ||
AC_INIT([casamonitor], [1.0], [[email protected]]) | ||
AM_INIT_AUTOMAKE([foreign subdir-objects]) | ||
AC_PROG_CC | ||
AC_PROG_CXX | ||
|
||
# Check for avr-gcc and avr-g++ | ||
AC_CHECK_TOOL([AVR_CC], [avr-gcc]) | ||
AC_CHECK_TOOL([AVR_CXX], [avr-g++]) | ||
|
||
# Set environment variables for AVR | ||
AC_SUBST([CC], [$AVR_CC]) | ||
AC_SUBST([CXX], [$AVR_CXX]) | ||
AC_SUBST([CFLAGS], ['-mmcu=atmega328p -Os']) | ||
AC_SUBST([CXXFLAGS], ['-mmcu=atmega328p -Os']) | ||
AC_SUBST([LDFLAGS], ['-mmcu=atmega328p']) | ||
|
||
AC_CONFIG_FILES([Makefile include/Makefile src/Makefile]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Makefile.am for the include directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# src/Makefile.am | ||
|
||
# Define the source files for the executable | ||
main_SOURCES = \ | ||
buff_atomic.cpp \ | ||
main.cpp \ | ||
timers.cpp \ | ||
uint8t.c \ | ||
usart.c |