add my unfinished cbase
This commit is contained in:
parent
501065651d
commit
bb63a9dd3c
16 changed files with 277 additions and 0 deletions
26
cbase/data/lists/Makefile
Normal file
26
cbase/data/lists/Makefile
Normal 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)
|
||||
./$@
|
||||
Loading…
Add table
Add a link
Reference in a new issue