Skip to content

Commit

Permalink
Add clean target
Browse files Browse the repository at this point in the history
Deletes executables and object files
  • Loading branch information
bendudson committed Jan 3, 2018
1 parent c4152b5 commit 20e0270
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nasm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ STEPS = step0_repl step1_read_print step2_eval step3_env step4_if_fn_do step5_tc

COMPONENTS = env.asm core.asm reader.asm printer.asm types.asm system.asm exceptions.asm


all: $(STEPS)

%.o: %.asm $(COMPONENTS)
Expand All @@ -11,6 +12,10 @@ all: $(STEPS)
%: %.o
ld -o $@ $<

.PHONY: clean
clean:
rm -f $(STEPS) $(STEPS:%=%.o)

######################

SOURCES_BASE = reader.asm printer.asm types.asm system.asm exceptions.asm
Expand Down

0 comments on commit 20e0270

Please sign in to comment.