X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=makefile;fp=makefile;h=6ca58432c4e992e87144f8f451f09b8bf5685a1d;hp=82d921ebd2b15365a28b456437c50cd94c42e188;hb=4ae7c1069667d8f067258d89676126f9b44226d6;hpb=8c48c212e119ba28b0666c9ec3faa97cbd11ca7a diff --git a/makefile b/makefile index 82d921e..6ca5843 100644 --- a/makefile +++ b/makefile @@ -43,6 +43,14 @@ $(EXES): output/% : output/%.d makefile gcc $(CFLAGS:-combine:) $(INCS) -MM -MT $@ $($*_SRCS) > $@.d gcc $(CFLAGS) $(INCS) -o $@ $($*_SRCS) +asm: $(addsuffix .s, $(EXES)) + +$(addsuffix .s, $(EXES)): output/%.s : output/%.d makefile + gcc $(CFLAGS:-combine:) $(INCS) -MM -MT $@ $($*_SRCS) > output/$*.d + gcc $(CFLAGS) $(INCS) -S -o $@.temp $($*_SRCS) + grep -v "^L[BFM]\|^LCF" $@.temp > $@ + rm $@.temp + ################################################################################################### # tags file for vi ################################################################################################### @@ -62,4 +70,4 @@ $(addsuffix .d, $(EXES)) : output/%.d : -include $(addsuffix .d, $(EXES)) -.PHONY: clean test tags +.PHONY: clean test tags asm