Use object files instead of entire binary.
Makes for less assembly code to look through.
This commit is contained in:
parent
c2ec66c7d4
commit
3c588f9a7d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
# ignore binaries
|
# ignore binaries
|
||||||
*.exe
|
*.exe
|
||||||
|
*.o
|
||||||
# ignore object dumps
|
# ignore object dumps
|
||||||
*.dump
|
*.dump
|
||||||
|
6
Makefile
6
Makefile
@ -1,11 +1,11 @@
|
|||||||
CPP=g++
|
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)
|
all: $(EXEC)
|
||||||
|
|
||||||
%.exe: %.cpp
|
%.o: %.cpp
|
||||||
g++ $< -o $@
|
g++ $< -o $@ -c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(EXEC)
|
$(RM) $(EXEC)
|
||||||
|
Loading…
Reference in New Issue
Block a user