Dummy commit to test new ssh key
[eleutheria.git] / buddy / Makefile
blobe1ea88ce4b08f435d284e4fc638443e7f4f0c641
1 objects_common = mpool.o
2 files_common = mpool.c
3 objects1 = test1.o $(objects_common)
4 objects2 = test2.o $(objects_common)
5 objects3 = test3.o mstat.o $(objects_common)
6 objects4 = test4.o mstat.o $(objects_common)
7 objects5 = test5.o $(objects_common)
10 files1 = test1.c $(files_common)
11 files2 = test2.c $(files_common)
12 files3 = test3.c mstat.c $(files_common)
13 files4 = test4.c mstat.c $(files_common)
14 files5 = test5.c $(files_common)
16 dest = .
17 cc = gcc
18 cflags = -Wall -W -Wextra -Wformat-nonliteral -Wcast-align -Wpointer-arith \
19 -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes \
20 -Wmissing-declarations -Winline -Wundef -Wnested-externs -Wcast-qual \
21 -Wshadow -Wwrite-strings -Wno-unused-parameter -Wfloat-equal \
22 -Wswitch -Wbad-function-cast -pedantic -ansi -g
24 all: test1 test2 test3 test4 test5
26 test1: $(objects1)
27 $(cc) $(cflags) $(files1) -o $(dest)/test1
29 test2: $(objects2)
30 $(cc) $(cflags) $(files2) -o $(dest)/test2
32 test3: $(objects3)
33 $(cc) $(cflags) $(files3) -o $(dest)/test3
35 test4: $(objects4)
36 $(cc) $(cflags) $(files4) -o $(dest)/test4
38 test5: $(objects5)
39 $(cc) $(cflags) $(files5) -o $(dest)/test5
41 clean:
42 rm -f *.o
43 rm -f *~
44 find . -type f -perm -111 -exec rm '{}' \; # In Linux -111 should be /111
46 test1.o: mpool.h
47 test2.o: mpool.h
48 test3.o: mpool.h mstat.h
49 test4.o: mpool.h mstat.h
50 test5.o: mpool.h
51 mstat.o: mstat.h