AfanasevGad7

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

commit 2d615ab80e231ffe43916c936d84eedaa84231a0
parent a2d666b3cd65783d9b6e7be7312a443b1d8337ca
Author: Plat <plat@stellar-nexus.ru>
Date:   Fri,  7 Nov 2025 19:22:55 +0000

Fixed Makefile

Diffstat:
MMakefile | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,7 +4,7 @@ CXX = ntree LIBS = ${wildcard libutil/*.c} OBJS = ${LIBS:.c=.o} -all: ${BIN} ${CXX} config.h +all: ${BIN} ${CXX} config.h: cp config.def.h config.h @@ -13,10 +13,11 @@ ${BIN}: ${BIN:%=%.o} ${OBJS} ${CC} ${CFLAGS} -o $@ $@.o ${OBJS} ${LDFLAGS} strip $@ -${CXX}: ${CXX:%=%.o} ${OBJS} - ${CXX} ${CXXFLAGS} -o $@ $@.cxx ${OBJS} ${LDFLAGS} +${CXX}: ${OBJS} + ${GXX} ${CXXFLAGS} -o $@ $@.cxx ${OBJS} ${LDFLAGS} + strip $@ -%.o: %.c +%.o: %.c config.h ${CC} ${CFLAGS} -c $< -o $@ test: all sample_data.txt @@ -26,6 +27,6 @@ sample_data.txt: shuf -i 0-999999 > sample_data.txt clean: - rm -f ${BIN} ${BIN:%=%.o} ${OBJS} + rm -f ${BIN} ${CXX} ${BIN:%=%.o} ${OBJS} .PHONY: all clean test