aboutsummaryrefslogtreecommitdiff
path: root/week-3/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-03 11:06:28 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-03 11:06:28 +0200
commit49c81f56b9262a41335f36a727c8125e349b1487 (patch)
tree7cbe1696f83f18cec5fe861daa8204767cd5587a /week-3/makefile
parent6cda6a35647b5faad8914b66f277e5bf645bbfd2 (diff)
no more duplicate makefiles
Diffstat (limited to 'week-3/makefile')
l---------[-rw-r--r--]week-3/makefile25
1 files changed, 1 insertions, 24 deletions
diff --git a/week-3/makefile b/week-3/makefile
index 3b71b5b..a4e84c6 100644..120000
--- a/week-3/makefile
+++ b/week-3/makefile
@@ -1,24 +1 @@
-CC = gcc
-LD = gcc
-RM = rm -f
-TARGET = main
-
-LFLAGS += -lstdc++
-
-SRCS := $(wildcard *.cpp)
-OBJS := $(patsubst %.cpp,%.o, $(SRCS))
-
-all: main
-
-%.o: %.cpp
- $(CC) -c $(CFLAGS) $< -o $@
-
-$(TARGET): $(OBJS)
- $(LD) $^ $(LFLAGS) -o $@
-
-clean:
- $(RM) $(TARGET) $(OBJS)
-
-compile_commands: clean
- compiledb make
-
+../week.mk \ No newline at end of file