2012-07-13 21:18:35 +02:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS+=-O3 -Wall -march=native -pedantic -std=c99 -D_POSIX_C_SOURCE=20120607L -D_XOPEN_SOURCE
|
|
|
|
LIBS=-lm -lpthread -lrt
|
|
|
|
|
|
|
|
TARGET=musiclight2
|
2012-09-03 18:50:11 +02:00
|
|
|
SOURCE=main.c fft.c utils.c ws2801.c lut.c
|
|
|
|
DEPS=config.h fft.h utils.h ws2801.h lut.h
|
2012-07-13 21:18:35 +02:00
|
|
|
|
|
|
|
OBJ=$(patsubst %.c, %.o, $(SOURCE))
|
|
|
|
|
|
|
|
$(TARGET): $(OBJ) $(DEPS)
|
|
|
|
$(CC) -o $(TARGET) $(OBJ) $(LIBS)
|
|
|
|
|
|
|
|
%.o: %.c $(DEPS)
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $< $(INCLUDES)
|
|
|
|
|
|
|
|
doc:
|
|
|
|
doxygen doxygen.conf
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TARGET)
|
|
|
|
rm -f $(OBJ)
|