diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-05-29 11:31:34 +0200 |
---|---|---|
committer | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-05-29 11:31:34 +0200 |
commit | 22b97d969cdff46a06a48a5bce7d183c4a877fb5 (patch) | |
tree | b6134d1afddbd20f7b4f4a731956271e5aa1e422 /makefile | |
parent | d062ae0e598ddc38b1e683a2f5169a0f48e5611e (diff) |
inital classes
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 25 |
1 files changed, 21 insertions, 4 deletions
@@ -1,8 +1,25 @@ -main: main.o +CC = g++ +LD = g++ +RM = rm -f +CFLAGS = -g -std=c++17 +LFLAGS = +TARGET = main \ + Observer \ + Node \ + Net +SRCS := $(wildcard *.cpp) +OBJS := $(patsubst %.cpp,%.o, $(SRCS)) + +all: $(TARGET) + +%.o: %.cpp + $(CC) -c $(CFLAGS) $< -o $@ + +$(TARGET): $(OBJS) + $(LD) $^ $(LFLAGS) -o $@ clean: - git clean -fxdi + $(RM) $(TARGET) $(OBJS) -compile_commands.json: +compile_commands: clean compiledb make -Bn - |