1 | # Definition des commandes |
---|
2 | CC = gcc |
---|
3 | AR = ar |
---|
4 | RM = rm |
---|
5 | INDENT = indent |
---|
6 | |
---|
7 | # Definition des parametres |
---|
8 | LDFLAGS = -p |
---|
9 | CFLAGS = -g -p -Wall -ansi -Werror |
---|
10 | ARFLAGS = -r |
---|
11 | IDFLAGS = -gnu -bli0 -npsl -l90 |
---|
12 | |
---|
13 | .PHONY: all clean realclean indent |
---|
14 | |
---|
15 | statt : |
---|
16 | $(CC) $(LDFLAGS) $^ -o statt |
---|
17 | |
---|
18 | main.o: |
---|
19 | $(CC) -o $@ $(CFLAGS) $< -c |
---|
20 | |
---|
21 | count.o: |
---|
22 | $(CC) -o $@ $(CFLAGS) $< -c |
---|
23 | |
---|
24 | dico.o: |
---|
25 | $(CC) -o $@ $(CFLAGS) $< -c |
---|
26 | |
---|
27 | hash.o: |
---|
28 | $(CC) -o $@ $(CFLAGS) $< -c |
---|
29 | |
---|
30 | all: clean statt |
---|
31 | |
---|
32 | clean: |
---|
33 | $(RM) *.o *.a *.out *~ 2> /dev/null || true |
---|
34 | |
---|
35 | realclean: clean |
---|
36 | $(RM) statt 2> /dev/null || true |
---|
37 | |
---|
38 | indent: |
---|
39 | $(INDENT) $(IDFLAGS) *.c *.h |
---|