summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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