diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-03 11:06:28 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-03 11:06:28 +0200 |
commit | 49c81f56b9262a41335f36a727c8125e349b1487 (patch) | |
tree | 7cbe1696f83f18cec5fe861daa8204767cd5587a /week-1 | |
parent | 6cda6a35647b5faad8914b66f277e5bf645bbfd2 (diff) |
no more duplicate makefiles
Diffstat (limited to 'week-1')
l---------[-rw-r--r--] | week-1/makefile | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/week-1/makefile b/week-1/makefile index 8ab5b1c..a4e84c6 100644..120000 --- a/week-1/makefile +++ b/week-1/makefile @@ -1,22 +1 @@ -CC = g++ -LD = g++ -RM = rm -f -CFLAGS = -EXECNAME = main - -SOURCES := $(wildcard *.cpp) -OBJECTS := $(patsubst %.cpp,%.o, $(SOURCES)) - -all: main - -.o: - $(CC) -c $(CFLAGS) $< - -$(EXECNAME): $(OBJECTS) - $(CC) $(OBJECTS) -o $(EXECNAME) - -clean: - $(RM) $(EXECNAME) - -distclean: clean - $(RM) *.o +../week.mk
\ No newline at end of file |