git.haldean.org x6502 / master Makefile
master

Tree @master (Download .tar.gz)

Makefile @masterraw · history · blame

CC=gcc
COPTS=-o x6502 -O3 -lpthread -Wall -lncurses
DEBUGOPTS=-DDEBUG -O0 -g
PYTHON=python2

all: release

debug-names.h: generate_debug_names.py opcodes.h
	$(PYTHON) generate_debug_names.py > debug-names.h

release: debug-names.h *.c *.h
	$(CC) $(COPTS) *.c

debug: debug-names.h *.c *.h
	$(CC) $(COPTS) $(DEBUGOPTS) *.c