changed output file name

This commit is contained in:
Samuel Walker 2024-04-23 07:46:02 -06:00
parent 7f1cce4b79
commit ea33054175
2 changed files with 3 additions and 3 deletions

View File

@ -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

BIN
main

Binary file not shown.