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)
|
srcfiles := $(wildcard */*.cpp)
|
||||||
objfiles := $(subst src,obj,$(subst .cpp,.o,$(srcfiles)))
|
objfiles := $(subst src,obj,$(subst .cpp,.o,$(srcfiles)))
|
||||||
|
|
||||||
all: main
|
all: main.out
|
||||||
|
|
||||||
main: $(objfiles)
|
main.out: $(objfiles)
|
||||||
$(CXX) $(LDFLAGS) -o main $(objfiles) $(LDLIBS)
|
$(CXX) $(LDFLAGS) -o $@ $< $(LDLIBS)
|
||||||
|
|
||||||
obj/%.o: src/%.cpp
|
obj/%.o: src/%.cpp
|
||||||
mkdir -p obj
|
mkdir -p obj
|
||||||
|
Loading…
Reference in New Issue
Block a user