Skip to content

Commit

Permalink
Fixed compilation issue with assembler.
Browse files Browse the repository at this point in the history
  • Loading branch information
linguini1 committed Jan 9, 2024
1 parent 90f9171 commit 8670b2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion assembler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ assembler: $(OBJ_FILES)
tester:
$(CC) $(CFLAGS) tests/test.c -o $(TEST_OUT)

%.o: %.c $(CC) $(CFLAGS) $(WARNINGS) -o $@ -c $<
%.o: %.c
$(CC) $(CFLAGS) $(WARNINGS) -o $@ -c $<

check: assembler tester
@echo "RUNNING TESTS"
Expand Down
6 changes: 3 additions & 3 deletions assembler/src/main.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* An assembler for the gol-16 assembly language (g-asm) */
#include "conversion/analyzer.h"
#include "conversion/instructions.h"
#include "conversion/lexer.h"
#include "analyzer.h"
#include "instructions.h"
#include "lexer.h"
#include <stdio.h>
#include <stdlib.h>

Expand Down

0 comments on commit 8670b2e

Please sign in to comment.