GNUmakefile 2.98 KB
#!smake
#
# Makefile for n_audio library subdirectory
#

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

ARCHIVES = libn_audio.a

LIBINCLUDE = $(ROOT)/PR/libultra/include

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

LCOPTS += -mips2 -O2
OPTIMIZER =

HFILES	= \
	n_abi.h \
	n_cseqp.h \
	n_libaudio.h \
	n_libaudio_s_to_n.h \
	n_seqp.h \
	n_sndp.h \
	n_synthInternals.h

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_synsetpan.c \
	n_synsetpitch.c \
	n_synsetpriority.c \
	n_synsetvol.c \
	n_synstartvoice.c \
	n_synstartvoiceparam.c \
	n_synstopvoice.c \
	n_synthesizer.c\
	\
	n_seqplayer.c\
	n_seqpdelete.c\
	n_seqpgetchlvol.c\
	n_seqpgetfxmix.c\
	n_seqpgetpan.c\
	n_seqpgetpriority.c\
	n_seqpgetprogram.c\
	n_seqpgetseq.c\
	n_seqpgetstate.c\
	n_seqpgettempo.c\
	n_seqpgetvol.c\
	n_seqpplay.c\
	n_seqpsendmidi.c\
	n_seqpsetbank.c\
	n_seqpsetchlvol.c\
	n_seqpsetfxmix.c\
	n_seqpsetpan.c\
	n_seqpsetpriority.c\
	n_seqpsetprogram.c\
	n_seqpsetseq.c\
	n_seqpsettempo.c\
	n_seqpsetvol.c\
	n_seqpstop.c\
	n_seqploop.c\
	\
	n_csplayer.c\
	n_cspdelete.c\
	n_cspgetchlvol.c\
	n_cspgetfxmix.c\
	n_cspgetpan.c\
	n_cspgetpriority.c\
	n_cspgetprogram.c\
	n_cspgetseq.c\
	n_cspgetstate.c\
	n_cspgettempo.c\
	n_cspgetvol.c\
	n_cspplay.c\
	n_cspsendmidi.c\
	n_cspsetbank.c\
	n_cspsetchlvol.c\
	n_cspsetfxmix.c\
	n_cspsetpan.c\
	n_cspsetpriority.c\
	n_cspsetprogram.c\
	n_cspsetseq.c\
	n_cspsettempo.c\
	n_cspsetvol.c\
	n_cspstop.c\
	\
	n_sndpallocate.c\
	n_sndpdeallocate.c\
	n_sndpdelete.c\
	n_sndpgetstate.c\
	n_sndplayer.c\
	n_sndpplay.c\
	n_sndpplayat.c\
	n_sndpsetfxmix.c\
	n_sndpsetpan.c\
	n_sndpsetpitch.c\
	n_sndpsetpriority.c\
	n_sndpsetvol.c\
	n_sndpstop.c\
	n_sndpgetsound.c\
	n_sndpsetsound.c\
	\
	n_event.c\
	n_seq.c\
	n_csq.c

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

ADDFILES = \
	n_env_add01.c \
	n_load_add01.c \
	n_load_add02.c \
	n_resample_add01.c \
	n_reverb_add01.c \
	n_reverb_add02.c \
	n_reverb_add03.c \
	n_reverb_add04.c \
	n_save_add01.c

LDIRT = $(ARCHIVES) *~

default : $(ARCHIVES)

headers :
	$(INSTALL) -m 444 -F /usr/include/PR n_libaudio.h n_libaudio_s_to_n.h

exports	: $(ARCHIVES)
	$(INSTALL) -m 444 -F /usr/lib $(ARCHIVES)

install : $(ARCHIVES)
	$(INSTALL) -m 444 -F /usr/include/PR n_libaudio.h n_libaudio_s_to_n.h
	$(INSTALL) -m 444 -F /usr/lib $(ARCHIVES)
	$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libnaudio $(SOURCES)
	$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libnaudio $(ADDFILES)
	$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libnaudio -src Makefile.src Makefile
	 
$(ARCHIVES): % : %($(OBJECTS))
	ar cru $@ $?
	rm -f $?

PRDEPTH = ..
include $(PRDEPTH)/PRrules