File: Makefile.in

package info (click to toggle)
snack 2.2.10.20090623-dfsg-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,276 kB
  • ctags: 3,784
  • sloc: ansic: 32,654; sh: 8,558; tcl: 1,086; python: 701; makefile: 564
file content (132 lines) | stat: -rw-r--r-- 2,632 bytes parent folder | download | duplicates (9)
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
srcdir = @srcdir@
prefix = @prefix@

CC = gcc
CFLAGS = @CFLAGS@

INSTALL_DIR = @prefix@
SNACK_INSTALL_DIR = $(INSTALL_DIR)/lib/snack@SNACK_VERSION@

# NOTE: You will need to update this path if DX6 is not installed in /mingw/dx6!
# DX6 for Mingw: http://people.montana.com/%7Ebowman/Software/ming.zip
DX6_DIR = /mingw/dx6
DX6_INC_DIR = $(DX6_DIR)/include
DX6_LIB_DIR = $(DX6_DIR)/lib

INCLUDES = @TCL_INCLUDE_SPEC@ @TK_INCLUDE_SPEC@ -I$(DX6_INC_DIR) -I$(srcdir)/../generic

# stupid autoconf messes up the VPATH variable!
WORKAROUND = $(srcdir)/../generic $(srcdir)
VPATH = $(WORKAROUND)

DEFINES = -DWIN -DUSE_TCL_STUBS -DUSE_TK_STUBS -DBUILD_snack -DTCL_81_API

TCL_LIB_SPEC = @TCL_LIB_SPEC@
TK_LIB_SPEC = @TK_LIB_SPEC@

SNACK_DLL = libsnack.dll
SOUND_DLL = libsound.dll
SNACK_STUB = @SNACK_STUB_LIB_FILE@
SNACK_STUB_OBJS = snackStubInit.o

SNACK_TCL_FILE = $(srcdir)/../unix/snack.tcl
SNACK_PKG_FILE = $(srcdir)/../unix/pkgIndex.tcl.dll
SNACK_PKG_FILE_DEST = pkgIndex.tcl

SOURCES = \
ffa.c \
g711.c \
jkAudio.c \
jkAudIO_win.c \
jkCanvSect.c \
jkCanvSpeg.c \
jkCanvWave.c \
jkFilter.c \
jkFilterIIR.c \
jkFormatMP3.c \
jkMixer.c \
jkPitchCmd.c \
jkSound.c \
jkSoundEdit.c \
jkSoundEngine.c \
jkSoundFile.c \
jkSoundProc.c \
jkSynthesis.c \
shape.c \
jkGetF0.c \
jkFormant.c \
sigproc.c \
sigproc2.c \
sound.c \
snack.c \
snackStubInit.c


COMMON_OBJS = \
ffa.o \
g711.o \
jkAudio.o \
jkAudIO_win.o \
jkFilter.o \
jkFilterIIR.o \
jkFormatMP3.o \
jkMixer.o \
jkPitchCmd.o \
jkSound.o \
jkSoundEdit.o \
jkSoundEngine.o \
jkSoundFile.o \
jkSoundProc.o \
jkSynthesis.o \
shape.o \
jkGetF0.o \
jkFormant.o \
sigproc.o \
sigproc2.o

SNACK_OBJS = \
$(COMMON_OBJS) \
jkCanvSect.o \
jkCanvSpeg.o \
jkCanvWave.o \
snack.o

SOUND_OBJS = \
$(COMMON_OBJS) \
sound.o


SNACK_LIBS = $(TCL_LIB_SPEC) $(TK_LIB_SPEC) $(SNACK_STUB) -lwinmm
SOUND_LIBS = $(TCL_LIB_SPEC) $(SNACK_STUB) -lwinmm

.SUFFIXES: .o .c

.c.o:
	$(CC) $(CFLAGS) $(INCLUDES) $(DEFINES) -c -o $@ $<

all: $(SNACK_STUB) $(SNACK_DLL) $(SOUND_DLL)

clean:
	rm -f *.o *.dll *.a

install:
	@if test ! -d "$(SNACK_INSTALL_DIR)" ; then \
	    echo "mkdir $(SNACK_INSTALL_DIR)" ; \
	    mkdir "$(SNACK_INSTALL_DIR)" ; \
	fi
	cp $(SNACK_STUB) "$(SNACK_INSTALL_DIR)"
	cp $(SNACK_DLL) "$(SNACK_INSTALL_DIR)"
	cp $(SOUND_DLL) "$(SNACK_INSTALL_DIR)"
	cp $(SNACK_TCL_FILE) "$(SNACK_INSTALL_DIR)"
	cp $(SNACK_PKG_FILE) "$(SNACK_INSTALL_DIR)/$(SNACK_PKG_FILE_DEST)"

$(SNACK_DLL): $(SNACK_OBJS)
	gcc -shared -o $@ $(SNACK_OBJS) $(SNACK_LIBS)

$(SOUND_DLL): $(SOUND_OBJS)
	gcc -shared -o $@ $(SOUND_OBJS) $(SOUND_LIBS)

$(SNACK_STUB) : $(SNACK_STUB_OBJS)
	ar cr $@ $(SNACK_STUB_OBJS)
	ranlib $@