Makefile 860 Bytes
include $(ROOT)/usr/include/make/PRdefs

OPTIMIZER = -g

TARGETS=ic

LCOPTS = -mips2 -fullwarn -G 0
LCINCS = -I. -I$(ROOT)/usr/include/PR
LLDLIBS=  -L $(ROOT)/usr/lib -L $(ROOT)/usr/lib/PR

YFLAGS = -vd

OPTIMIZER=-g

CFILES = \
	bank.c \
	bankfile.c \
	instrument.c \
	sound.c \
	keymap.c \
	wavetable.c \
	loop.c \
	book.c \
	envelope.c \
	declreps.c \
	hash.c \
	list.c \
	symtab.c \
	output.c \
	main.c

ic.y.o: ic.y y.tab.h y.tab.c
	$(CCF) -c ${INCLUDES} $(CFLAGS) y.tab.c -o ic.y.o

ic.l.o: ic.l y.tab.h
	lex ic.l
	$(CCF) -c lex.yy.c -o ic.l.o

y.tab.h y.tab.c: ic.y
	rm -f y.tab.h
	yacc $(YFLAGS) ic.y

y.tab.c: y.tab.h

ic: Makefile y.tab.h $(OBJECTS) ic.y.o ic.l.o
	$(CCF) $(OBJECTS) ic.y.o ic.l.o $(LDFLAGS) -o $@

default: $(TARGETS)

include $(COMMONRULES)

headers exports:

install: default

exports install: default
	$(INSTALL) -F /usr/sbin ic