Sound2Light auf RGB(W)-LED-Leisten
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 610B

12345678910111213141516171819202122232425
  1. LUA_CFLAGS=$(shell pkg-config --cflags lua)
  2. LUA_LIBS=$(shell pkg-config --libs lua)
  3. CC=gcc
  4. CFLAGS+=-O2 -Wall -march=native -pedantic -std=c99 -D_POSIX_C_SOURCE=20120607L -D_XOPEN_SOURCE $(LUA_CFLAGS)
  5. LIBS=-lm -lpthread -lrt $(LUA_LIBS)
  6. TARGET=musiclight2
  7. SOURCE=main.c fft.c utils.c ws2801.c lua_utils.c lua_wrappers.c
  8. DEPS=config.h fft.h utils.h ws2801.h lua_utils.h lua_wrappers.h
  9. OBJ=$(patsubst %.c, %.o, $(SOURCE))
  10. $(TARGET): $(OBJ) $(DEPS)
  11. $(CC) -o $(TARGET) $(OBJ) $(LIBS)
  12. %.o: %.c $(DEPS)
  13. $(CC) -c $(CFLAGS) -o $@ $< $(INCLUDES)
  14. doc:
  15. doxygen doxygen.conf
  16. clean:
  17. rm -f $(TARGET)
  18. rm -f $(OBJ)