Skip to content

Commit

Permalink
Update configure.ac
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-marian committed May 22, 2024
1 parent ec85444 commit e736686
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,17 @@ AC_INIT([casamonitor], [1.0], [[email protected]])
AM_INIT_AUTOMAKE([foreign])
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

0 comments on commit e736686

Please sign in to comment.