Browse Source

Add a Makefile target for generating assembly

In case we want to peek at the generated assembly
Ian Goldberg 2 years ago
parent
commit
4780b7e22d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Makefile

+ 3 - 0
Makefile

@@ -11,6 +11,9 @@ OBJS=$(SRCS:.cpp=.o)
 $(BIN): $(OBJS)
 	g++ $(LDFLAGS) -o $@ $^ $(LDLIBS)
 
+%.s: %.cpp
+	g++ $(CXXFLAGS) -S -o $@ $^
+
 # Remove the files created by the preprocessing phase
 reset:
 	-rm -f *.p[01].t*