summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-01-14 19:07:49 -0600
committerBobby Bingham <koorogi@koorogi.info>2017-01-15 23:19:28 -0600
commit9acd6ce40559c59ca55899215aa9d7e781b5a8b7 (patch)
treef787d6c61ac2fd5c16f9219bc652f076ac8fdf39 /Makefile
parentf91057644c1f1813bf1373b5158e6b658210d570 (diff)
nqdasm: Add disassembler
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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