Initial Commit

This commit is contained in:
Marc
2025-09-13 14:40:16 +02:00
commit ded01301c2
383 changed files with 71046 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
MWE = dlist_mwe1 dlist_mwe2 dlist_mwe1i dlist_mwe2i
SRC = dlist.c
OBJ = $(SRC:.c=.o)
CC = gcc
CFLAGS = -std=c99 -Wall -I../../include -g
all: mwe
# Minimum working examples.
mwe: $(MWE)
# Object file for library
obj: $(OBJ)
clean:
-rm -f $(MWE) $(OBJ)
dlist_mwe1: dlist_mwe1.c dlist.c
gcc -o $@ $(CFLAGS) $^
dlist_mwe2: dlist_mwe2.c dlist.c
gcc -o $@ $(CFLAGS) $^
dlist_mwe1i: dlist_mwe1i.c dlist.c
gcc -o $@ $(CFLAGS) $^
dlist_mwe2i: dlist_mwe2i.c dlist.c
gcc -o $@ $(CFLAGS) $^
memtest1: dlist_mwe1
valgrind --leak-check=full --show-reachable=yes ./$<
memtest2: dlist_mwe2
valgrind --leak-check=full --show-reachable=yes ./$<
memtest3: dlist_mwe1i
valgrind --leak-check=full --show-reachable=yes ./$<
memtest4: dlist_mwe2i
valgrind --leak-check=full --show-reachable=yes ./$<