AfanasevGad7

This is a task for our favourite professor
git clone git://git.stellar-nexus.ru/AfanasevGad7
Log | Files | Refs | README

commit 463fc87d1f300814edd5e6e67cb340205d95a34e
parent 2cc0a07c7152b10e24923a1c0b1919462779b7c0
Author: Plat <plat@stellar-nexus.ru>
Date:   Fri,  7 Nov 2025 11:21:38 +0000

Updated Makefile

Diffstat:
MMakefile | 13+++++++++++--
Rconfig.h -> config.def.h | 0
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,7 +3,10 @@ BIN = avl fib rb LIBS = ${wildcard libutil/*.c} OBJS = ${LIBS:.c=.o} -all: ${BIN} +all: ${BIN} config.h + +config.h: + cp config.def.h config.h ${BIN}: ${BIN:%=%.o} ${OBJS} ${CC} ${CFLAGS} -o $@ $@.o ${OBJS} ${LDFLAGS} @@ -12,7 +15,13 @@ ${BIN}: ${BIN:%=%.o} ${OBJS} %.o: %.c ${CC} ${CFLAGS} -c $< -o $@ +test: all sample_data.txt + @echo "Waiting for a teamate" + +sample_data.txt: + shuf -i 0-999999 > sample_data.txt + clean: rm -f ${BIN} ${BIN:%=%.o} ${OBJS} -.PHONY: all clean +.PHONY: all clean test diff --git a/config.h b/config.def.h