GNUmakefile
695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# 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)