]>
Commit | Line | Data |
---|---|---|
1 | \r | |
2 | # Set the value of $(MSVCDir) for your installation.\r | |
3 | \r | |
4 | # MSVCDir="C:\Progra~1\Micros~1\VC98"\r | |
5 | # CFLAGS=/nologo /MD /W1 /GX /O2 /I "$(MSVCDir)\Include" /I . /I "Win32" /I "src" /D "WIN32" /D "_USRDLL" /YX /FD /Zm1000\r | |
6 | # PROG_LINK_FLAGS=/nologo /incremental:no /libpath:"$(MSVCDir)\Lib" /pdb:"libsamplerate-0.pdb" /machine:I386 /exetype:dynamic\r | |
7 | \r | |
8 | MSVCDir="C:\Progra~1\Micros~1.Net\Vc7"\r | |
9 | CFLAGS=/nologo /MD /W1 /GX /O2 /Zm200 /I "$(MSVCDir)\Include" /I "$(MSVCDir)\PlatformSDK\Include" /I . /I "Win32" /I "src" /D "WIN32" /D "_USRDLL" /YX /FD /Zm1000\r | |
10 | PROG_LINK_FLAGS=/nologo /incremental:no /libpath:"$(MSVCDir)\Lib" /libpath:"$(MSVCDir)\PlatformSDK\Lib" /pdb:"libsamplerate-0.pdb" /machine:I386 /exetype:dynamic\r | |
11 | \r | |
12 | CPP=cl.exe\r | |
13 | LINK32=link.exe\r | |
14 | DLL_LINK_FLAGS=/nologo /dll /incremental:no /libpath:"$(MSVCDir)\Lib" /pdb:"libsamplerate-0.pdb" /implib:".\libsamplerate-0.lib" /machine:I386 /out:"libsamplerate-0.dll"\r | |
15 | \r | |
16 | #====================================================================\r | |
17 | # Targets\r | |
18 | \r | |
19 | ALL : libsndfile-1.lib libsamplerate-0.dll \\r | |
20 | ".\examples\sndfile-resample.exe" \\r | |
21 | ".\examples\varispeed-play.exe"\r | |
22 | \r | |
23 | CLEAN :\r | |
24 | -@erase "src\*.obj"\r | |
25 | -@erase "tests\*.exe"\r | |
26 | \r | |
27 | #====================================================================\r | |
28 | \r | |
29 | LINK32_OBJS= \\r | |
30 | ".\src\samplerate.obj" \\r | |
31 | ".\src\src_linear.obj" \\r | |
32 | ".\src\src_zoh.obj" \\r | |
33 | ".\src\src_sinc.obj"\r | |
34 | \r | |
35 | libsamplerate-0.dll : $(LINK32_OBJS) ".\Win32\libsamplerate-0.def"\r | |
36 | $(LINK32) $(DLL_LINK_FLAGS) /def:".\Win32\libsamplerate-0.def" $(LINK32_OBJS)\r | |
37 | \r | |
38 | ".\examples\sndfile-resample.exe" : ".\examples\sndfile-resample.c"\r | |
39 | $(CPP) $(CFLAGS) /Fo".\examples\sndfile-resample.obj" /c ".\examples\sndfile-resample.c"\r | |
40 | $(LINK32) $(PROG_LINK_FLAGS) /out:".\examples\sndfile-resample.exe" ".\examples\sndfile-resample.obj" libsamplerate-0.lib libsndfile-1.lib\r | |
41 | \r | |
42 | ".\examples\varispeed-play.exe" : ".\examples\varispeed-play.c" ".\examples\audio_out.obj"\r | |
43 | $(CPP) $(CFLAGS) /Fo".\examples\varispeed-play.obj" /c ".\examples\varispeed-play.c"\r | |
44 | $(LINK32) $(PROG_LINK_FLAGS) /out:".\examples\varispeed-play.exe" ".\examples\varispeed-play.obj" ".\examples\audio_out.obj" libsamplerate-0.lib libsndfile-1.lib winmm.lib\r | |
45 | \r | |
46 | ".\examples\audio_out.obj" : ".\examples\audio_out.c"\r | |
47 | $(CPP) $(CFLAGS) /Fo".\examples\audio_out.obj" /c ".\examples\audio_out.c"\r | |
48 | \r | |
49 | TEST_PROGS= \\r | |
50 | ".\tests\misc_test.exe" \\r | |
51 | ".\tests\termination_test.exe" \\r | |
52 | ".\tests\simple_test.exe" \\r | |
53 | ".\tests\reset_test.exe" \\r | |
54 | ".\tests\multi_channel_test.exe" \\r | |
55 | ".\tests\snr_bw_test.exe" \\r | |
56 | ".\tests\throughput_test.exe"\r | |
57 | \r | |
58 | CHECK: $(TEST_PROGS)\r | |
59 | ".\tests\misc_test.exe"\r | |
60 | ".\tests\termination_test.exe"\r | |
61 | ".\tests\simple_test.exe"\r | |
62 | ".\tests\reset_test.exe"\r | |
63 | ".\tests\multi_channel_test.exe"\r | |
64 | ".\tests\snr_bw_test.exe"\r | |
65 | ".\tests\throughput_test.exe"\r | |
66 | -@echo ----------------------------------------------------------------------\r | |
67 | -@echo libsamplerate passed all tests\r | |
68 | -@echo ----------------------------------------------------------------------\r | |
69 | \r | |
70 | #====================================================================\r | |
71 | # C files in src.\r | |
72 | \r | |
73 | ".\src\samplerate.obj" : ".\src\samplerate.c"\r | |
74 | $(CPP) $(CFLAGS) /Fo".\src\samplerate.obj" /c ".\src\samplerate.c"\r | |
75 | \r | |
76 | ".\src\src_linear.obj" : ".\src\src_linear.c"\r | |
77 | $(CPP) $(CFLAGS) /Fo".\src\src_linear.obj" /c ".\src\src_linear.c"\r | |
78 | \r | |
79 | ".\src\src_zoh.obj" : ".\src\src_zoh.c"\r | |
80 | $(CPP) $(CFLAGS) /Fo".\src\src_zoh.obj" /c ".\src\src_zoh.c"\r | |
81 | \r | |
82 | ".\src\src_sinc.obj" : ".\src\src_sinc.c"\r | |
83 | $(CPP) $(CFLAGS) /Fo".\src\src_sinc.obj" /c ".\src\src_sinc.c"\r | |
84 | \r | |
85 | #====================================================================\r | |
86 | # Object files for test programs.\r | |
87 | \r | |
88 | ".\tests\util.obj" : ".\tests\util.c"\r | |
89 | $(CPP) $(CFLAGS) /Fo".\tests\util.obj" /c ".\tests\util.c"\r | |
90 | \r | |
91 | ".\tests\calc_snr.obj" : ".\tests\calc_snr.c"\r | |
92 | $(CPP) $(CFLAGS) /Fo".\tests\calc_snr.obj" /c ".\tests\calc_snr.c"\r | |
93 | \r | |
94 | ".\tests\dft_cmp.obj" : ".\tests\dft_cmp.c"\r | |
95 | $(CPP) $(CFLAGS) /Fo".\tests\dft_cmp.obj" /c ".\tests\dft_cmp.c"\r | |
96 | \r | |
97 | #====================================================================\r | |
98 | # Test programs.\r | |
99 | \r | |
100 | ".\tests\misc_test.exe" : ".\tests\misc_test.c" ".\tests\util.obj"\r | |
101 | $(CPP) $(CFLAGS) /Fo".\tests\misc_test.obj" /c ".\tests\misc_test.c"\r | |
102 | $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\misc_test.exe" ".\tests\misc_test.obj" ".\tests\util.obj" libsamplerate-0.lib\r | |
103 | \r | |
104 | ".\tests\termination_test.exe" : ".\tests\termination_test.c" ".\tests\util.obj"\r | |
105 | $(CPP) $(CFLAGS) /Fo".\tests\termination_test.obj" /c ".\tests\termination_test.c"\r | |
106 | $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\termination_test.exe" ".\tests\termination_test.obj" ".\tests\util.obj" libsamplerate-0.lib\r | |
107 | \r | |
108 | ".\tests\streaming_test.exe" : ".\tests\streaming_test.c" ".\tests\util.obj"\r | |
109 | $(CPP) $(CFLAGS) /Fo".\tests\streaming_test.obj" /c ".\tests\streaming_test.c"\r | |
110 | $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\streaming_test.exe" ".\tests\streaming_test.obj" ".\tests\util.obj" libsamplerate-0.lib\r | |
111 | \r | |
112 | ".\tests\simple_test.exe" : ".\tests\simple_test.c" ".\tests\util.obj"\r | |
113 | $(CPP) $(CFLAGS) /Fo".\tests\simple_test.obj" /c ".\tests\simple_test.c"\r | |
114 | $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\simple_test.exe" ".\tests\simple_test.obj" ".\tests\util.obj" libsamplerate-0.lib\r | |
115 | \r | |
116 | ".\tests\reset_test.exe" : ".\tests\reset_test.c" ".\tests\util.obj"\r | |
117 | $(CPP) $(CFLAGS) /Fo".\tests\reset_test.obj" /c ".\tests\reset_test.c"\r | |
118 | $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\reset_test.exe" ".\tests\reset_test.obj" ".\tests\util.obj" libsamplerate-0.lib\r | |
119 | \r | |
120 | ".\tests\multi_channel_test.exe" : ".\tests\multi_channel_test.c" ".\tests\util.obj" ".\tests\calc_snr.obj"\r | |
121 | $(CPP) $(CFLAGS) /Fo".\tests\multi_channel_test.obj" /c ".\tests\multi_channel_test.c"\r | |
122 | $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\multi_channel_test.exe" ".\tests\multi_channel_test.obj" ".\tests\util.obj" ".\tests\calc_snr.obj" libsamplerate-0.lib\r | |
123 | \r | |
124 | ".\tests\snr_bw_test.exe" : ".\tests\snr_bw_test.c" ".\tests\util.obj"\r | |
125 | $(CPP) $(CFLAGS) /Fo".\tests\snr_bw_test.obj" /c ".\tests\snr_bw_test.c"\r | |
126 | $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\snr_bw_test.exe" ".\tests\snr_bw_test.obj" ".\tests\util.obj" libsamplerate-0.lib\r | |
127 | \r | |
128 | ".\tests\throughput_test.exe" : ".\tests\throughput_test.c" ".\tests\util.obj"\r | |
129 | $(CPP) $(CFLAGS) /Fo".\tests\throughput_test.obj" /c ".\tests\throughput_test.c"\r | |
130 | $(LINK32) $(PROG_LINK_FLAGS) /out:".\tests\throughput_test.exe" ".\tests\throughput_test.obj" ".\tests\util.obj" libsamplerate-0.lib\r | |
131 | \r | |
132 | #====================================================================\r | |
133 | # Bit of extra trickery.\r | |
134 | \r | |
135 | sndfile.h libsndfile-1.dll libsndfile-1.def :\r | |
136 | -@echo *---------------------------------------------------------------\r | |
137 | -@echo * You need to get the pre-built Win32 binaries for libsndfile\r | |
138 | -@echo * from : http://www.mega-nerd.com/libsndfile\r | |
139 | -@echo * The prebuilt binaries will be in a ZIP file which contains\r | |
140 | -@echo * the files :\r | |
141 | -@echo * sndfile.h libsndfile-1.dll libsndfile-1.def\r | |
142 | -@echo * which need to be copied to this directory.\r | |
143 | -@echo *---------------------------------------------------------------\r | |
144 | -@exit 1\r | |
145 | \r | |
146 | libsndfile-1.lib : libsndfile-1.dll libsndfile-1.def\r | |
147 | lib /machine:i386 /def:libsndfile-1.def\r | |
148 | \r | |
149 | # End of Makefile\r | |
150 | #====================================================================\r |