Makefile 3.1 KB
#!smake
#
# Makefile for n_audio
#

PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs

LIBDEPTH=$(ROOT)/PR/libnaudio
include $(LIBDEPTH)/libdefs

COMMONPREF=libnaudio

.NOTPARALLEL:

LIBINCLUDE = $(ROOT)/PR/libultra/include
LCDEFS = -D_ULTRA64 -DN_MICRO
LCOPTS = -non_shared -fullwarn -G 0 -mips2
LCINCS = -I$(LIBDEPTH) -I$(LIBINCLUDE) -I$(ROOT)/usr/include -I$(ROOT)/usr/include/PR

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 =

sinclude locdefs

include $(LIBDEPTH)/librules

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

install! headers default
	for i in $(TARGETS) ; do \
		$(INSTALL) -m 444 -F /usr/lib -src $$i/$$i.a $$i.a; \
	done
	$(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
	$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libnaudio/libn_audio \
							-src libn_audio/locdefs locdefs
	$(INSTALL) -m 444 -F /usr/src/PR/libsrc/libnaudio/libn_audio_d \
							-src libn_audio_d/locdefs locdefs

clean clobber! $(_FORCE)
	for i in $(TARGETS) ; do \
		rm -rf $$i/$$i.a $$i/$(MKDEPFILE) $$i/*.o; \
	done

include $(PRDEPTH)/PRrules