changed output file name
This commit is contained in:
parent
7f1cce4b79
commit
ea33054175
6
Makefile
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user