From afa02662b185f62644b1e44a55820ded1e703fd2 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 30 May 2023 14:14:10 +0200 Subject: scaffold os2eindopdracht + argument parsing --- os2eindopdracht/makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 os2eindopdracht/makefile (limited to 'os2eindopdracht/makefile') diff --git a/os2eindopdracht/makefile b/os2eindopdracht/makefile new file mode 100644 index 0000000..d88ea30 --- /dev/null +++ b/os2eindopdracht/makefile @@ -0,0 +1,24 @@ +C++ = g++ +LD = g++ +RM = rm -f +CFLAGS = +LFLAGS = +TARGET = main + +SRCS := $(wildcard *.cpp) +OBJS := $(patsubst %.cpp,%.o, $(SRCS)) + +all: $(TARGET) + +%.o: %.cpp + $(C++) -c $(CFLAGS) $< -o $@ + +$(TARGET): $(OBJS) + $(LD) $^ $(LFLAGS) -o $@ + +clean: + $(RM) $(TARGET) $(OBJS) + +compile_commands: + compiledb make -Bn + -- cgit v1.2.3