fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
1# src/drivers/sound/Makefile.inc
2
3rel := src/drivers/sound
4
5DIRS += $(rel)
6DIST += $(rel)/Makefile.inc
7
8DRV_SND_BAS := filter sound sound-null sound-wav
9DRV_SND_NBAS :=
10
11ifeq "$(PCE_ENABLE_SOUND_OSS)" "1"
12DRV_SND_BAS += sound-oss
13else
14DRV_SND_NBAS += sound-oss
15endif
16
17ifeq "$(PCE_ENABLE_SDL)" "1"
18DRV_SND_BAS += sound-sdl
19else
20DRV_SND_NBAS += sound-sdl
21endif
22
23DRV_SND_SRC := $(foreach f,$(DRV_SND_BAS),$(rel)/$(f).c)
24DRV_SND_NSRC := $(foreach f,$(DRV_SND_NBAS),$(rel)/$(f).c)
25DRV_SND_OBJ := $(foreach f,$(DRV_SND_BAS),$(rel)/$(f).o)
26DRV_SND_NOBJ := $(foreach f,$(DRV_SND_NBAS),$(rel)/$(f).o)
27DRV_SND_HDR := $(foreach f,$(DRV_SND_BAS),$(rel)/$(f).h)
28DRV_SND_NHDR := $(foreach f,$(DRV_SND_NBAS),$(rel)/$(f).h)
29DRV_SND_ARC := $(rel)/sound.a
30
31CLN += $(DRV_SND_OBJ) $(DRV_SND_NOBJ) $(DRV_SND_ARC)
32DIST += $(DRV_SND_SRC) $(DRV_SND_HDR) $(DRV_SND_NSRC) $(DRV_SND_NHDR)
33
34$(rel)/sound-sdl.o: $(rel)/sound-sdl.c
35 $(QP)echo " CC $@"
36 $(QR)$(CC) -c $(CFLAGS_DEFAULT) $(PCE_SDL_CFLAGS) -o $@ $<
37
38$(rel)/filter.o: $(rel)/filter.c
39$(rel)/sound.o: $(rel)/sound.c
40$(rel)/sound-null.o: $(rel)/sound-null.c
41$(rel)/sound-oss.o: $(rel)/sound-oss.c
42$(rel)/sound-wav.o: $(rel)/sound-wav.c
43
44$(rel)/sound.a: $(DRV_SND_OBJ)