gasm/src/Makefile

19 lines
248 B
Makefile

CC = gcc
CFLAGS= -O2 -Wall -Wextra
LIBS =
LFLAGS=
SRCFILES= main.c 6502.c
OBJFILES= gasm
.PHONY: all clean
all: main
main:
$(CC) $(CFLAGS) $(SRCFILES) -o $(OBJFILES)
test:
./gasm ../tests/test.asm ../tests/test.bin
xxd ../tests/test.bin