GNUmakefile 695 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
CC=$(HOST_CC)
GCINCS=-I$(ROOT)/host_include
GLDOPTS=
LCOPTS =-Wall -D_LANGUAGE_C
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) -g -o $@

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