File: Makefile.ami

package info (click to toggle)
sox 12.16-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,180 kB
  • ctags: 1,466
  • sloc: ansic: 16,658; sh: 2,071; makefile: 126
file content (143 lines) | stat: -rw-r--r-- 4,221 bytes parent folder | download
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
##
## Sound Tools Makefile for AMIGA with SAS/C 6.1
## 	builds libst.lib and sox
##
## This must be redone to compile with DICE, GCC, etc.
##
## Choose the version you wish to compile with:
## <make-tool> -f Makefile.ami			(for basic version)
## <make-tool> -f Makefile.ami CPU=030		(for 68030 version)
## <make-tool> -f Makefile.ami FPU=881		(for 68881 FPU version)
## <make-tool> -f Makefile.ami CPU=030 FPU=881	(for 030/881 version)
##
## Note: This makefile does not work with SAS's 'smake' utility, because
## 'smake' is weak.  Get yourself a real 'make' tool, such as the port of
## 'dmake'.  If you can't find one, use the commented-out section below to
## rewrite this makefile for 'smake'.
##

FSRC	= 8svx.c aiff.c alsa.c au.c auto.c cdr.c cvsd.c dat.c g711.c g721.c \
	  g723_24.c g723_40.c g72x.c gsm.c hcom.c maud.c oss.c raw.c \
	  sbdsp.c sf.c smp.c sndrtool.c sunaudio.c tx16w.c voc.c wav.c wve.c

ESRC	= avg.c band.c chorus.c copy.c cut.c deemphas.c dyn.c echo.c echos.c \
	  flanger.c highp.c lowp.c map.c mask.c phaser.c pick.c \
	  polyphas.c rate.c resample.c reverb.c reverse.c split.c \
	  stat.c swap.c vibro.c 

PSRC= sox.c

SOURCES   = $(PSRC) $(FSRC) $(ESRC) handlers.c libst.c misc.c getopt.c util.c

HEADERS   = st.h libst.h sfheader.h version.h patchlvl.h 

TESTS     = tests.sh testall.sh monkey.au monkey.voc

MISC    = README INSTALL TODO TIPS CHEAT CHEAT.eft Changelog sox.1 sox.txt \
	  libst.3 libst.txt play.1 Makefile.unx Makefile.dos Makefile.b30 \
	  Makefile.c70 soxeffect play rec

SKEL	  = skel.c skeleff.c

AMIGA	  = Makefile.ami amiga.h

DOS	  = tests.bat testall.bat

VMS       = descrip.mms sound2au.com sound2sun.c sound2sun.opt \
	    sox.opt tests.com vms.lis

FILES     = $(MISC) $(HEADERS) $(SOURCES) $(AMIGA) $(DOS) $(VMS) \
	    $(SKEL) $(TESTS)

FOBJ	= 8svx.o aiff.o alsa.o au.o auto.o cdr.o cvsd.o dat.o g711.o g721.o \
	  g723_24.o g723_40.o g72x.o gsm.o hcom.o maud.o oss.o raw.o \
	  sbdsp.o sf.o smp.o sndrtool.o sunaudio.o tx16w.o voc.o wav.o wve.o

EOBJ	= avg.o band.o chorus.o copy.o cut.o deemphas.o dyn.o echo.o echos.o \
	  flanger.o highp.o lowp.o map.o mask.o phaser.o pick.o \
	  polyphas.o rate.o resample.o reverb.o reverse.o split.o \
	  stat.o swap.o vibro.o

##SOUNDLIB is defined below
LIBOBJS   = $(FOBJ) $(EOBJ) handlers.o libst.o misc.o getopt.o util.o

##
## System dependency parameters
##
##
## Amiga vars for SAS 6.1.
## Lots of funky stuff here.  Unnecessary, but keeps it neat.
## Also matches unix makefile more closely.
##
CC	= sc DEF=__STDC__ DEF=AMIGA
##IGNore some warnings due to lack of prototyping in SOX code
O	= IGN=85 IGN=93 IGN=100 IGN=154 IGN=161 OPTIMIZE OPTIMIZERINLINELOCAL OPTIMIZERTIME OPTIMIZERALIAS
AR	= oml
AR_ARGS	= a
RM	= delete
MATH	= 
MATH881	= MATH=68881
CPUF	= 
CPUF030	= CPU=68030
MATHLIB	= lib:scm.lib
MATHLIB881	= lib:scm881.lib
DEFS	= 
DEFS881	= DEF=AMIGA_MC68881
DEFS030	= DEF=AMIGA_MC68030
##
SOX	= sox$(CPU)$(FPU)
SOUNDLIB= libst$(CPU)$(FPU).lib
CFLAGS	+= $(O) DEF=AMIGA $(DEFS$(FPU)) $(DEFS$(CPU)) $(MATH$(FPU)) $(CPUF$(CPU))
LIBS	= $(MATHLIB$(FPU)) lib:sc.lib lib:amiga.lib
##

###################################################
##This is unnecessary if you have a serious 'make'.
##If you don't, use it as a guide to building your
##own makefile.
###################################################
##
## 68000, no FPU
#SOX	= sox
#SOUNDLIB= libst.lib
#MATHLIB	= lib:scm.lib
#CFLAGS	+= $(O) DEF=AMIGA
##
## 68000, 68881 FPU
#SOX	= sox881
#SOUNDLIB= libst881.lib
#MATHLIB	= lib:scm881.lib lib:scm.lib
#CFLAGS	+= $(O) MATH=68881 DEF=AMIGA DEF=AMIGA_MC68881
##
## 68030, no FPU
#SOX	= sox030
#SOUNDLIB= libst030.lib
#MATHLIB	= lib:scm.lib
#CFLAGS	+= $(O) CPU=68030 DEF=AMIGA
##
## 68030, 68881 FPU
#SOX	= sox030881
#SOUNDLIB= libst030881.lib
#MATHLIB	= lib:scm881.lib lib:scm.lib
#CFLAGS	+= $(O) MATH=68881 CPU=68030 DEF=AMIGA DEF=AMIGA_MC68881

##
## start your engines
##
all: $(SOX)

$(SOX): sox.o $(SOUNDLIB)
	slink lib:c.o sox.o to $(SOX) lib $(SOUNDLIB) $(LIBS) SMALLCODE SMALLDATA STRIPDEBUG NOICONS

$(SOUNDLIB): $(LIBOBJS)
	$(AR) $(SOUNDLIB) $(AR_ARGS) $(LIBOBJS)

sox.o:		sox.c st.h

sox.txt: sox.man
	$(RM) sox.txt
	nroff -man sox.man > sox.txt
	nroff -man st.man > st.txt

clean:
	$(RM) #?.o