Initial commit of project!

This commit is contained in:
A.M. Rowsell 2024-07-14 08:51:06 -04:00
commit 62e13b6cb0
Signed by untrusted user who does not match committer: amr
GPG key ID: 0B6E2D8375CF79A9
4 changed files with 138 additions and 0 deletions

22
Makefile Normal file
View file

@ -0,0 +1,22 @@
APP=main
AWK=awk
CC=gcc
CFLAGS=-std=gnu11 -O2
SRCS = $(wildcard *.c)
OBJS = $(SRCS:.c=.o)
.PHONY: all clean
all: clean $(APP) plot
$(APP): $(OBJS)
$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
clean:
$(RM) $(OBJS) $(APP) plot.png
plot: $(APP)
./$(APP) $(TAPS) | $(AWK) -v k=0 '{ print k " " $$1; k++ }' > 16bit.txt
gnuplot plot
xdg-open plot.png