Files
asm6502/Makefile
2022-10-18 11:22:22 +02:00

20 lines
355 B
Makefile

OBJ=asm6502.o itbl.o
LIBS=
CC=cc
CFLAGS=--std=c89 -Wall -pedantic
DEL=rm
.PHONY: clean
asm6502: $(OBJ)
$(CC) -o $@ $(OBJ) $(LIBS)
%.o: %.c Makefile
$(CC) -c $(CFLAGS) $<
clean:
${DEL} asm6502 *.bak *.exe *.gch *.il? *.lk1 *.map *.mk *.mk1 *.o *.obj *.ppx *.sym *.tag *.tds 2>/dev/null || true
${DEL} tests/*.bin tests/*.prg 2>/dev/null || true