diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2017-01-14 19:07:49 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-01-15 23:19:28 -0600 |
commit | 9acd6ce40559c59ca55899215aa9d7e781b5a8b7 (patch) | |
tree | f787d6c61ac2fd5c16f9219bc652f076ac8fdf39 /Makefile | |
parent | f91057644c1f1813bf1373b5158e6b658210d570 (diff) |
nqdasm: Add disassembler
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |