summaryrefslogtreecommitdiff
path: root/os2eindopdracht/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-30 14:14:10 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-30 14:14:10 +0200
commitafa02662b185f62644b1e44a55820ded1e703fd2 (patch)
tree51538888fac8aefb888c1a6e55e74c59a23debaa /os2eindopdracht/makefile
parente95bd56df67f3ba6d6f9d44c66b791e45bcd54a3 (diff)
scaffold os2eindopdracht + argument parsing
Diffstat (limited to 'os2eindopdracht/makefile')
-rw-r--r--os2eindopdracht/makefile24
1 files changed, 24 insertions, 0 deletions
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
+