diff options
Diffstat (limited to 'apps/codecs/demac/Makefile')
-rw-r--r-- | apps/codecs/demac/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/apps/codecs/demac/Makefile b/apps/codecs/demac/Makefile new file mode 100644 index 0000000000..e0ed4ad341 --- /dev/null +++ b/apps/codecs/demac/Makefile | |||
@@ -0,0 +1,43 @@ | |||
1 | # $Id:$ | ||
2 | |||
3 | FILTERS = libdemac/filter_16_11.o libdemac/filter_64_11.o libdemac/filter_256_13.o libdemac/filter_32_10.o libdemac/filter_1280_15.o | ||
4 | LIBOBJS = libdemac/parser.o libdemac/decoder.o libdemac/entropy.o libdemac/predictor.o libdemac/crc.o $(FILTERS) | ||
5 | OBJS = demac.o wavwrite.o $(LIBOBJS) | ||
6 | |||
7 | CFLAGS = -Wall -O3 -Ilibdemac | ||
8 | |||
9 | ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) | ||
10 | EXT = .exe | ||
11 | CROSS = | ||
12 | CFLAGS += -mno-cygwin | ||
13 | else | ||
14 | ifdef WIN | ||
15 | EXT = .exe | ||
16 | CROSS = i586-mingw32msvc- | ||
17 | else | ||
18 | EXT = | ||
19 | CROSS = | ||
20 | endif | ||
21 | endif | ||
22 | |||
23 | CC = $(CROSS)gcc | ||
24 | STRIP = $(CROSS)strip | ||
25 | OUTPUT = demac$(EXT) | ||
26 | |||
27 | all: $(OUTPUT) | ||
28 | |||
29 | $(OUTPUT): $(OBJS) | ||
30 | $(CC) -o $(OUTPUT) $(OBJS) | ||
31 | |||
32 | .c.o : | ||
33 | $(CC) $(CFLAGS) $(INC) -c -o $@ $< | ||
34 | |||
35 | libdemac/filter_16_11.o: libdemac/filter.c | ||
36 | libdemac/filter_64_11.o: libdemac/filter.c | ||
37 | libdemac/filter_256_13.o: libdemac/filter.c | ||
38 | libdemac/filter_1280_15.o: libdemac/filter.c | ||
39 | libdemac/filter_32_10.o: libdemac/filter.c | ||
40 | libdemac/entropy.o: libdemac/rangecoding.h | ||
41 | |||
42 | clean: | ||
43 | rm -f $(OUTPUT) $(OBJS) *~ */*~ | ||