beta with artnet protocol

This commit is contained in:
2021-05-01 00:06:38 +01:00
parent a01770282d
commit e8b99665be
8 changed files with 471 additions and 257 deletions

View File

@ -1,5 +1,5 @@
CC=gcc
CFLAGS=-Wall -g -DDEBUG
CFLAGS=-Wall -g #-DDEBUG
LDFLAGS=#-lpthread
SRCDIR=src
OBJDIR=obj
@ -8,7 +8,7 @@ SRC=$(notdir $(wildcard $(SRCDIR)/*.c))
OBJ=$(SRC:.c=.o)
BIN=pixled
all: $(addprefix $(BINDIR)/, $(BIN))
all: clean $(addprefix $(BINDIR)/, $(BIN))
$(OBJDIR)/%.o: $(SRCDIR)/%.c
if [ ! -d $(OBJDIR) ]; then mkdir "$(OBJDIR)"; fi
@ -20,4 +20,5 @@ $(BINDIR)/$(BIN) : $(addprefix $(OBJDIR)/, $(OBJ))
clean:
rm -rf $(BINDIR)/* $(OBJDIR)/*
rmdir $(BINDIR) $(OBJDIR)
if [ -d $(OBJDIR) ]; then rmdir "$(OBJDIR)"; fi
if [ -d "$(BINDIR)" ]; then rmdir "$(BINDIR)"; fi