diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-05-15 12:31:46 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-05-18 12:19:16 +0100 |
commit | 06f50ed77949cee495a1d8d98fec16648a5c8ea9 (patch) | |
tree | 6a138f6692c32f66cc98b9331dbc7d57e5b35543 /Makefile | |
parent | ccf1ea4a34a789da326a321589c2757e5b1d749c (diff) | |
download | tr8vm-06f50ed77949cee495a1d8d98fec16648a5c8ea9.tar.gz tr8vm-06f50ed77949cee495a1d8d98fec16648a5c8ea9.zip |
Added OPL3 supportsound-opl3
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |