aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-02-05 02:41:17 +0100
committerJavier <dev.git@javispedro.com>2022-02-05 02:41:17 +0100
commit176ec23dd48c50c87e5394b702e2cf0fe72957db (patch)
tree7137f296963e3a8638c24ca08c47e70d0456d2ec /Makefile
parent4d13ee7785a4184cf2a349fdec1af6cf9f05bfdf (diff)
downloadvmusic-176ec23dd48c50c87e5394b702e2cf0fe72957db.tar.gz
vmusic-176ec23dd48c50c87e5394b702e2cf0fe72957db.zip
add initial emu8k/SBAWE32 device using PCem's emu8k
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 188ea1b..16e8780 100644
--- a/Makefile
+++ b/Makefile
@@ -13,14 +13,19 @@ OUTOSDIR:=$(OUTDIR)/$(OS).$(ARCH)
# Files for each library
ADLIBR3OBJ:=$(OBJOSDIR)/Adlib.o $(OBJOSDIR)/opl3.o
-MPU401R3OBJ:=$(OBJOSDIR)/Mpu401.o
ADLIBR3LIBS:=
+MPU401R3OBJ:=$(OBJOSDIR)/Mpu401.o
MPU401R3LIBS:=
+EMU8000R3OBJ:=$(OBJOSDIR)/Emu8000.o $(OBJOSDIR)/emu8k.o
+EMU8000R3LIBS:=
+
ifeq "$(OS)" "linux"
ADLIBR3OBJ+=$(OBJOSDIR)/pcmalsa.o
-MPU401R3OBJ+=$(OBJOSDIR)/midialsa.o
ADLIBR3LIBS+=-lasound
+MPU401R3OBJ+=$(OBJOSDIR)/midialsa.o
MPU401R3LIBS+=-lasound
+EMU8000R3OBJ+=$(OBJOSDIR)/pcmalsa.o
+EMU8000R3LIBS+=-lasound
else ifeq "$(OS)" "win"
ADLIBR3OBJ+=$(OBJOSDIR)/pcmwin.o
MPU401R3OBJ+=$(OBJOSDIR)/midiwin.o
@@ -60,14 +65,14 @@ endif
all: build
-build: $(OUTOSDIR)/VMusicMain.$(SO) $(OUTOSDIR)/VMusicMainVM.$(SO) $(OUTOSDIR)/AdlibR3.$(SO) $(OUTOSDIR)/Mpu401R3.$(SO)
+build: $(OUTOSDIR)/VMusicMain.$(SO) $(OUTOSDIR)/VMusicMainVM.$(SO) $(OUTOSDIR)/AdlibR3.$(SO) $(OUTOSDIR)/Mpu401R3.$(SO) $(OUTOSDIR)/Emu8000R3.$(SO)
$(OUTDIR) $(OBJDIR) $(OBJOSDIR) $(OUTOSDIR): %:
mkdir -p $@
$(OBJOSDIR)/%.o: %.cpp | $(OBJOSDIR)
$(CXX) -c -O2 -g -pipe -fPIC -m64 $(VBOX_CXXFLAGS) $(VBOX_DEFINES) -o $@ $<
-
+
$(OBJOSDIR)/%.o: %.c | $(OBJOSDIR)
$(CC) -c -O2 -g -pipe -fPIC -m64 $(VBOX_CFLAGS) $(VBOX_DEFINES) -o $@ $<
@@ -83,9 +88,12 @@ $(OUTOSDIR)/AdlibR3.$(SO): $(ADLIBR3OBJ) | $(OUTOSDIR)
$(OUTOSDIR)/Mpu401R3.$(SO): $(MPU401R3OBJ) | $(OUTOSDIR)
$(CXX) -shared -fPIC -m64 $(VBOX_LDFLAGS) -o $@ $+ $(VBOX_LIBS) $(MPU401R3LIBS)
+$(OUTOSDIR)/Emu8000R3.$(SO): $(EMU8000R3OBJ) | $(OUTOSDIR)
+ $(CXX) -shared -fPIC -m64 $(VBOX_LDFLAGS) -o $@ $+ $(VBOX_LIBS) $(EMU8000R3LIBS)
+
$(OUTDIR)/ExtPack.xml: ExtPack.xml
install -m 0644 $< $@
-
+
$(OUTDIR)/ExtPack.signature:
echo "todo" > $@
@@ -101,5 +109,5 @@ strip:
clean:
rm -rf $(OUTDIR) $(OBJDIR) VMusic.vbox-extpack
-
+
.PHONY: all build clean strip pack