add my unfinished cbase

This commit is contained in:
joachimschmidt557 2020-06-09 17:51:23 +02:00
parent 501065651d
commit bb63a9dd3c
16 changed files with 277 additions and 0 deletions

26
cbase/data/lists/Makefile Normal file
View file

@ -0,0 +1,26 @@
OBJ=linkedlist.o
SRC=$(OBJ:.o=.c)
HDR=$(SRC:.c=.h)
TST=$(SRC:.c=.test.c)
TSTBIN=$(TST:.test.c=.test)
CFLAGS+=-Wall
CFLAGS+=-Wextra
all: $(OBJ)
.PHONY: all
test: $(TSTBIN)
.PHONY: test
clean:
$(RM) $(OBJ) $(TSTBIN)
%.o: %.c %.h
$(CC) -o $@ -c $< $(CFLAGS)
$(TSTBIN): $(TST) $(OBJ)
$(CC) -o $@ $(@:=.c) $(@:.test=.c) $(CFLAGS)
./$@