mirror of
https://github.com/VARCem/asm6502.git
synced 2026-07-12 20:06:04 +00:00
20 lines
355 B
Makefile
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
|
|
|