Adds the stripDetector daemon

This commit is contained in:
2020-06-04 11:50:33 +02:00
parent 0e514a470d
commit 40257fc82d
2 changed files with 226 additions and 0 deletions

View File

@ -0,0 +1,29 @@
current_dir = $(shell pwd)
CROSS = nios2-buildroot-linux-gnu-
CC = $(CROSS)gcc
CFLAGS += -Wall #-DDEBUG
PROGS = stripd
DESTDIR ?= bin
INSTMODE = 0777
SRCS = stripd.c
OBJS = $(SRCS:.c=.o)
all: clean $(PROGS)
version: clean versioning $(PROGS)
boot: $(OBJS)
$(PROGS): $(OBJS)
mkdir -p $(DESTDIR)
$(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)
mv $(PROGS) $(DESTDIR)
rm $(main_src)*.o
clean:
rm -rf $(DESTDIR)/$(PROGS) *.o *.gdb $(main_src)*.o