diff options
author | notaz | 2011-01-07 23:58:45 +0200 |
---|---|---|
committer | notaz | 2011-01-07 23:58:45 +0200 |
commit | de38f20e0863e33a2a824380da5aa46b1dc39631 (patch) | |
tree | 95b9dd35b69e3bc21ce62d7f785304833f038424 /Makefile | |
parent | 131f0d940d328ff884503b9979f9936a36c7f0b7 (diff) | |
download | pcsx_rearmed-de38f20e0863e33a2a824380da5aa46b1dc39631.tar.gz pcsx_rearmed-de38f20e0863e33a2a824380da5aa46b1dc39631.tar.bz2 pcsx_rearmed-de38f20e0863e33a2a824380da5aa46b1dc39631.zip |
allow some build customization
also correct a statement in readme.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -14,10 +14,14 @@ endif ifndef DEBUG CFLAGS += -O2 # -DNDEBUG endif +USE_OSS = 1 +#USE_ALSA = 1 #DRC_DBG = 1 #PCNT = 1 TARGET = pcsx +-include Makefile.local + all: $(TARGET) # core @@ -40,9 +44,18 @@ CFLAGS += -DDRC_DBG endif # spu -OBJS += plugins/dfsound/adsr.o plugins/dfsound/dma.o plugins/dfsound/oss.o plugins/dfsound/reverb.o \ - plugins/dfsound/xa.o plugins/dfsound/freeze.o plugins/dfsound/cfg.o plugins/dfsound/registers.o \ - plugins/dfsound/spu.o +OBJS += plugins/dfsound/adsr.o plugins/dfsound/dma.o plugins/dfsound/reverb.o plugins/dfsound/xa.o \ + plugins/dfsound/freeze.o plugins/dfsound/cfg.o plugins/dfsound/registers.o plugins/dfsound/spu.o +ifeq "$(USE_OSS)" "1" +plugins/dfsound/%.o: CFLAGS += -DUSEOSS +OBJS += plugins/dfsound/oss.o +endif +ifeq "$(USE_ALSA)" "1" +plugins/dfsound/%.o: CFLAGS += -DUSEALSA +OBJS += plugins/dfsound/alsa.o +LDFLAGS += -lasound +endif + # gpu plugins/dfxvideo/%.o: CFLAGS += -Wall OBJS += plugins/dfxvideo/gpu.o |