Initial commit of project!
This commit is contained in:
commit
62e13b6cb0
4 changed files with 138 additions and 0 deletions
22
Makefile
Normal file
22
Makefile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue