From 0be46c952901aaafe76e1fb5a8faecb38323d549 Mon Sep 17 00:00:00 2001 From: Orfeas <38209077+0xfea5@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:38:05 +0300 Subject: Attaching & Detaching from process --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..844cc7b --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +CC = gcc +CFLAGS = -Wall -g +OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c)) +OUT = hack.out + +$(OUT): $(OBJS) + $(CC) $(CFLAGS) -o $@ $(OBJS) + +%.o: %.c + $(CC) $(CFLAGS) -c $? -o $@ + +clean: + rm -f src/*.o $(OUT) -- cgit v1.2.3