#!smake

include $(ROOT)/usr/include/make/commondefs
include $(ROOT)/usr/include/make/makelib.mk

DEBUG = -DDEBUG -DDEBUG0 -DDEBUG_WAIT -DDEBUG_REQUEST -DDEBUG_BUFFER -DSENDER_PRINT


LCINCS  = -I. 
CVERSION   = 
# If you want to run a debugger on these programs, remove the -s from LLDLIBS
# and add -g to the LCOPTS line.  NOTE:  as of IRIX release 4.0, you can bypass
# having to change this file AT ALL by using the bitchen macro, "VCOPTS=-g",
# on the command line (this will automatically override optimization).
LLDLIBS	= -lmidi -laudiofile -laudio -laudioutil\
          -lm -lmpc -lmalloc -lC 
VCOPTS	= -G0 -D_BSD_SIGNALS -g -D$(LISP) $(DEBUG)
# -DLISPWORKS -DEXCL

ARFLAGS = clrC

# override the prototypes macro in commondefs:  if you want
# prototyping turned on, comment out the next line.
PROTOTYPES=

default:
	$(MAKE) -f $(MAKEFILE) $(TARGETS)

include $(COMMONRULES)

OBJECTS= midi_threads.o taskblocks.o semaphores.o MIPortedQueue.o MIMultiPort.o midibuffer.o SA_stack.o

sgi-midi-1.0.a: sgi-midi-1.0.a($(OBJECTS)) MAKELIB

SA_stack.o: SA_stack.h SA_stack.c
MIMultiPort.o: MIMultiPort.h MIMultiPort.c
MIPortedQueue.o: MIPortedQueue.h MIPortedQueue.c
semaphores.o: semaphores.h semaphores.c
taskblocks.o: taskblocks.h taskblocks.c 
midi_threads.o:  midi_threads.h midi_threads.c
dummy.o: dummy.c
	cc -cckr -G0 -o dummy.o -c dummy.c
sgi-midi.h: midi_threads.h
midibuffer.o: midibuffer.c
sgi-midi-1.0.o: sgi-midi.h sgi-midi-1.0.c
sgi-excl-midi-1.0.o: sgi-midi.h sgi-excl-midi-1.0.c
sgi-lw-midi-1.0.o: sgi-midi.h sgi-lw-midi-1.0.c

