diff options
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 |