First testing draft of the program. Displays the up and download speed

This commit is contained in:
2021-10-19 17:29:12 +02:00
parent 2937d03396
commit 65e8f879ef
4 changed files with 208 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# cStatBar Makefile
SRC = cstatbar.c
OBJ = ${SRC:.c=.o}
CC = cc
CFLAGS = -std=c99 -g
LDFLAGS = -lX11
all: options cstatbar
options:
@echo cstatusbar build options are as follow:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
.c.o:
${CC} -c ${CFLAGS} $<
${OBJ}: config.h
config.h:
cp config.def.h $@
cstatbar: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
clean:
rm -f cstatbar ${OBJ}
.PHONY: all options clean