initial commit

This commit is contained in:
Lauchmelder 2022-04-08 19:16:55 +02:00
commit ae75b01938
2 changed files with 166 additions and 0 deletions

23
Makefile Normal file
View file

@ -0,0 +1,23 @@
CC := gcc
CFLAGS := -Wall -g
LIBRARIES := -lpthread
TARGET := musicalpi
SRCS := $(wildcard src/*.c)
OBJS := $(patsubst src/%.c, out/%.o, $(SRCS))
ALL: $(TARGET)
$(TARGET): mkdir $(OBJS)
$(CC) -o out/$@ $(filter-out $<, $^) $(LIBRARIES)
mkdir:
mkdir -p out
out/%.o: src/%.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf $(TARGET) out
.PHONY: all clean