Makefile 1.24 KB
#!smake
#
# Makefile for audio library subdirectory
#

include $(ROOT)/usr/include/make/PRdefs

# if you are using older N64OS than OS2.0i with patch5, uncomment next line.
#OLD_AUDIO_DEF = -D_OLD_AUDIO_LIBRARY

ARCHIVES=libn_audio_sc.a

LCINCS = \
	-I.\
	-I./include\
	-I$(ROOT)/usr/include\
	-I$(ROOT)/usr/include/PR
LCDEFS = -D_ULTRA64 -DNDEBUG -D_FINALROM -DN_MICRO $(OLD_AUDIO_DEF)
LCOPTS = -non_shared -fullwarn -G 0  -Wab,-r4300_mul

# LCOPTS += -g3 -mips2 -O3
LCOPTS += -mips2 -O2

OPTIMIZER =

CFILES  = \
	n_auxbus.c \
	n_drvrNew.c \
	n_env.c \
	n_load.c \
	n_mainbus.c \
	n_resample.c \
	n_reverb.c \
	n_save.c \
	n_sl.c \
	n_synaddplayer.c \
	n_synallocfx.c \
	n_synallocvoice.c \
	n_syndelete.c \
	n_synfreefx.c \
	n_synfreevoice.c \
	n_syngetfxref.c \
	n_syngetpriority.c \
	n_synremoveplayer.c \
	n_synsetfxmix.c \
	n_synsetfxparam.c \
	n_synsetfxtype.c \
	n_synsetpan.c \
	n_synsetpitch.c \
	n_synsetpriority.c \
	n_synsetvol.c \
	n_synstartvoice.c \
	n_synstartvoiceparam.c \
	n_synstopvoice.c \
	n_synthesizer.c

COBJECTS =   $(CFILES:.c=.o)

$(ARCHIVES): $(COBJECTS)
	ar cru $(ARCHIVES) $(COBJECTS)
#	@echo "*** move target file to upper directory ***"
#	mv -f $(ARCHIVES) ../

# include $(ROOT)/PR/PRrules
include $(COMMONRULES)

default: $(ARCHIVES)