Explorar el Código

Add a Makefile target for generating assembly

In case we want to peek at the generated assembly
Ian Goldberg hace 2 años
padre
commit
4780b7e22d
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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*