From 9acd6ce40559c59ca55899215aa9d7e781b5a8b7 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sat, 14 Jan 2017 19:07:49 -0600 Subject: nqdasm: Add disassembler --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d509c92..4668fad 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ GENSRCS = lexer.c parser.c GENHDRS = lexer.h parser.h SRCS = $(sort $(wildcard *.c) $(GENSRCS)) OBJS = $(SRCS:.c=.o) -TARGET = nqasm +TARGET = nqasm nqdasm all: $(TARGET) @@ -24,7 +24,10 @@ parser.o: lexer.h %.o: %.c $(CC) $(CFLAGS) -c $< -o $@ -$(TARGET): $(OBJS) +nqasm: $(filter-out nqdasm.o,$(OBJS)) +nqdasm: mnemonics.o nqdasm.o + +$(TARGET): $(CC) $(CFLAGS) $^ -o $@ .PHONY: all clean -- cgit v1.2.3