# Makefile for VirtualNascom
#https://askubuntu.com/questions/344512/what-is-the-general-procedure-to-install-development-libraries-in-ubuntu


# CC must be an ANSI-C compiler
CC=gcc

# full speed or debugging to taste
OPTIMIZE=-O2
#OPTIMIZE=-g
#WARN=-Wmost -Werror
WARN=-Wall
CFLAGS=$(OPTIMIZE) $(WARN) $(shell sdl-config --cflags) -lSDL -lSDL

virtualnascom: virtualnascom.o font.o simz80.o
	$(CC) $(CWARN) $(shell sdl-config --libs) $^ -o $@ -lSDL -lSDL

clean:
	rm -f *.o *~ core
