Use object files instead of entire binary.
Makes for less assembly code to look through.
This commit is contained in:
6
Makefile
6
Makefile
@ -1,11 +1,11 @@
|
||||
CPP=g++
|
||||
|
||||
EXEC := 00-const-vars/const.exe 00-const-vars/no-const.exe 01-inline-functions/inline.exe 01-inline-functions/no-inline.exe
|
||||
EXEC := 00-const-vars/const.o 00-const-vars/no-const.o 01-inline-functions/inline.o 01-inline-functions/no-inline.o
|
||||
|
||||
all: $(EXEC)
|
||||
|
||||
%.exe: %.cpp
|
||||
g++ $< -o $@
|
||||
%.o: %.cpp
|
||||
g++ $< -o $@ -c
|
||||
|
||||
clean:
|
||||
$(RM) $(EXEC)
|
||||
|
Reference in New Issue
Block a user