From 06f50ed77949cee495a1d8d98fec16648a5c8ea9 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 15 May 2023 12:31:46 +0100 Subject: Added OPL3 support --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3660c37..a49e820 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,17 @@ # common CC := gcc -CFLAGS := -Wpedantic -s -O2 -Wall -I. +CFLAGS := -Wpedantic -s -O2 -Wall -I. -I./Nuked-OPL3 LDFLAGS := -# only for the vm +# only for the vm player SDL2_CONFIG := sdl2-config -LIBS := `$(SDL2_CONFIG) --libs` -lSDL2_mixer +OPL3_PATH := `realpath ./Nuked-OPL3` +LIBS := `$(SDL2_CONFIG) --libs` -L$(OPL3_PATH) -Wl,-rpath,$(OPL3_PATH) -lopl3 all: tr8as tr8vm tr8vm: tr8vm.c vm.o vm.h + make -C Nuked-OPL3 $(CC) -std=c99 $(CFLAGS) `$(SDL2_CONFIG) --cflags` $< vm.o `$(SDL2_CONFIG) --libs` $(LIBS) -o $@ tr8as: tr8as.c stb_image.o @@ -32,6 +34,7 @@ example.tr8: example.asm assets/icon.png tr8as clean: make -C game clean + make -C Nuked-OPL3 rm -f tr8as tr8vm example.tr8 *.o .PHONY: clean all example game -- cgit v1.2.3