Makefile 631 Bytes
#
# Makefile for adpcm tools
#

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

CODEROBJECTS = vadpcm_enc.o vpredictor.o quant.o util.o vencode.o

DECODEROBJECTS = vadpcm_dec.o vpredictor.o sampleio.o vdecode.o util.o

OPTIMIZER = -g

TARGETS=vadpcm_enc vadpcm_dec

LCOPTS =-fullwarn 
LCINCS =-I. -I$(ROOT)/usr/include/PR

LLDOPTS=-L$(ROOT)/usr/lib/PR
LLDLIBS=-lm

default: $(TARGETS)

include $(COMMONRULES)

vadpcm_enc: $(CODEROBJECTS) vadpcm.h
	$(CC) $(CODEROBJECTS) $(LDFLAGS) -o $@

vadpcm_dec: $(DECODEROBJECTS) vadpcm.h
	$(CC) $(DECODEROBJECTS) $(LDFLAGS) -o $@

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