diff options
Diffstat (limited to 'os2eindopdracht/makefile')
-rw-r--r-- | os2eindopdracht/makefile | 24 |
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 + |