diff --git a/Makefile b/Makefile index e85c29f..d4a3567 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,10 @@ LDLIBS= srcfiles := $(wildcard */*.cpp) objfiles := $(subst src,obj,$(subst .cpp,.o,$(srcfiles))) -all: main +all: main.out -main: $(objfiles) - $(CXX) $(LDFLAGS) -o main $(objfiles) $(LDLIBS) +main.out: $(objfiles) + $(CXX) $(LDFLAGS) -o $@ $< $(LDLIBS) obj/%.o: src/%.cpp mkdir -p obj diff --git a/main b/main deleted file mode 100755 index d41e108..0000000 Binary files a/main and /dev/null differ