commit 463fc87d1f300814edd5e6e67cb340205d95a34e parent 2cc0a07c7152b10e24923a1c0b1919462779b7c0 Author: Plat <plat@stellar-nexus.ru> Date: Fri, 7 Nov 2025 11:21:38 +0000 Updated Makefile Diffstat:
| M | Makefile | | | 13 | +++++++++++-- |
| R | config.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