Most C code has been moved: this was very old student's code, mostly useless.

This commit is contained in:
Philippe Pittoli 2024-12-06 12:19:07 +01:00
parent 29ca3ebabd
commit bb8cd3d410
88 changed files with 34 additions and 0 deletions

33
c/old/Makefile Normal file
View File

@ -0,0 +1,33 @@
#SOURCE= vlc
#CFLAGS=$(shell pkg-config --libs vlc)
#
#all: compilationvlc
#
#compilationvlc:
# $(CC) $(SOURCE).c -o $(SOURCE) $(CFLAGS)
CC=clang
CFLAGS=-c -Wall -g
LDFLAGS=
CFILES=$(wildcard *.c) # CFILES => recompiles everything on a C file change
EXEC=$(basename $(wildcard *.c))
#SOURCES=$(wildcard *.c)
TESTS=$(addsuffix .test, $(EXEC))
all: $(SOURCES) $(EXEC)
$(EXEC): $(CFILES)
$(CC) $(LDFLAGS) $@.c -o $@
.c.o:
$(CC) $(CFLAGS) $< -o $@
clean:
@-rm $(EXEC)
# to test a binary "prog" : make prog.test
$(TESTS):
valgrind --leak-check=full -v --track-origins=yes ./$(basename $@)
test: all $(TESTS)

1
c/old/by-line/README.md Normal file
View File

@ -0,0 +1 @@
This application is an example of the `poll` syscall.

View File