aboutsummaryrefslogtreecommitdiff
path: root/Nuked-OPL3/Makefile
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-15 12:31:46 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-18 12:19:16 +0100
commit06f50ed77949cee495a1d8d98fec16648a5c8ea9 (patch)
tree6a138f6692c32f66cc98b9331dbc7d57e5b35543 /Nuked-OPL3/Makefile
parentccf1ea4a34a789da326a321589c2757e5b1d749c (diff)
downloadtr8vm-sound-opl3.tar.gz
tr8vm-sound-opl3.zip
Added OPL3 supportsound-opl3
Diffstat (limited to 'Nuked-OPL3/Makefile')
-rw-r--r--Nuked-OPL3/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Nuked-OPL3/Makefile b/Nuked-OPL3/Makefile
new file mode 100644
index 0000000..f896792
--- /dev/null
+++ b/Nuked-OPL3/Makefile
@@ -0,0 +1,21 @@
+CC := gcc
+AR := ar
+CFLAGS := -Wpedantic -s -O2 -Wall -I. -fPIC
+LDFLAGS := -shared
+
+all: libopl3.so
+
+libopl3.so: libopl3.a
+ $(CC) $(LDFLAGS) -o libopl3.so opl3.o
+
+libopl3.a: opl3.o
+ ar crs libopl3.a opl3.o
+
+opl3.o: opl3.c opl3.h
+ $(CC) $(CFLAGS) -c $< -o $@
+
+clean:
+ rm -f opl3.o libopl3.a libopl3.so
+
+.PHONY: clean all
+