AfanasevGad7

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

commit 82f4bc1b4b5d990aa16c05a4cd71944c9d5cc97f
parent 9864a0b3ef49d7720187f41d8f8394e3dfd59585
Author: Plat <plat@stellar-nexus.ru>
Date:   Wed,  5 Nov 2025 20:47:59 +0000

Added Makefile

Diffstat:
AMakefile | 18++++++++++++++++++
Aconfig.mk | 3+++
2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,18 @@ +include config.mk +BIN = rb +LIBS = ${wildcard libutil/*.c} +OBJS = rb.o ${LIBS:.c=.o} + +all: ${BIN} + +rb: ${OBJS} + ${CC} ${CFLAGS} -o $@ ${OBJS} ${LDFLAGS} + strip $@ + +%.o: %.c + ${CC} ${CFLAGS} -c $< -o $@ + +clean: + rm -f rb ${OBJS} + +.PHONY: all clean diff --git a/config.mk b/config.mk @@ -0,0 +1,3 @@ +CC = cc +CFLAGS = -O3 -pipe +LDFLAGS = -static