-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (43 loc) · 1.25 KB
/
Makefile
File metadata and controls
56 lines (43 loc) · 1.25 KB
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
CC = gcc
CFLAGS = -Wall \
-O3 \
-std=c99 \
-pedantic-errors \
-g \
-DDEBUG \
-pthread \
-lm
COFLAGS = -c \
-Wall \
-O3 \
-std=c99 \
-pedantic-errors \
-g \
-pthread \
-DDEBUG
ENCODER = eac_encode
DECODER = eac_decode
GENERATOR = generator
ENTROPY_CALC = entropy_calc
ENCODER_OBJECTS = encoder.o lz77.o cfc.o bit_string.o bit_string_writer.o log.o queue.o block.o delta.o
DECODER_OBJECTS = decoder.o lz77.o cfc.o bit_string.o bit_string_writer.o log.o delta.o
GENERATOR_OBJECTS = generator.o bit_string.o bit_string_writer.o log.o
ENTROPY_CALC_OBJECTS = entropy_calc.o log.o
.PHONY: all
all: $(ENCODER) $(DECODER) $(GENERATOR) $(ENTROPY_CALC)
$(ENCODER): $(ENCODER_OBJECTS)
$(CC) $(ENCODER_OBJECTS) -o $@ $(CFLAGS)
$(DECODER): $(DECODER_OBJECTS)
$(CC) $(DECODER_OBJECTS) -o $@ $(CFLAGS)
$(GENERATOR): $(GENERATOR_OBJECTS)
$(CC) $(GENERATOR_OBJECTS) -o $@ $(CFLAGS)
$(ENTROPY_CALC): $(ENTROPY_CALC_OBJECTS)
$(CC) $(ENTROPY_CALC_OBJECTS) -o $@ $(CFLAGS)
%.o: %.c
$(CC) $(COFLAGS) -c -o $@ $<
clean:
rm -f $(ENCODER) $(DECODER) $(GENERATOR) $(ENTROPY_CALC) *.o
tags: *.c *.h
etags *.c *.h
doc: doc/Doxyfile *.c *.h
cd doc; doxygen; cd ..