From ef84fb6fcb45a86fce97acda58606a76a937a1da Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 1 May 2023 21:44:35 +0100 Subject: Added the VM player using SDL - Wired basic functionality (fram-buffer, frame interrupt) - Bug fixes in the assembler --- Makefile | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 746491b..de20dff 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,22 @@ -CC := gcc -CFLAGS := -std=c89 -Wpedantic -s -O2 -Wall -I. -LDFLAGS := +# common +CC := gcc +CFLAGS := -Wpedantic -s -O2 -Wall -I. +LDFLAGS := + +# only for the vm +SDL2_CONFIG := sdl2-config +LIBS := `$(SDL2_CONFIG) --libs` -lSDL2_mixer all: tr8as tr8vm -tr8vm: vm.c vm.h - $(CC) $(CFLAGS) -DDO_MAIN $< -o $@ +tr8vm: tr8vm.c vm.o vm.h + $(CC) -std=c99 $(CFLAGS) `$(SDL2_CONFIG) --cflags` $< vm.o `$(SDL2_CONFIG) --libs` $(LIBS) -o $@ tr8as: tr8as.c - $(CC) $(CFLAGS) -DDO_MAIN $< -o $@ + $(CC) -std=c89 $(CFLAGS) -DDO_MAIN $< -o $@ + +vm.o: vm.c vm.h + $(CC) -c -std=c89 $(CFLAGS) $< -o $@ example: example.tr8 tr8vm ./tr8vm example.tr8 -- cgit v1.2.3