]> mj.ucw.cz Git - eval.git/blob - Makefile
79846d94515009c268b603e5ebe95a26310c8a27
[eval.git] / Makefile
1 # Makefile for mo-eval and related utilities
2 # (c) 2007 Martin Mares <mj@ucw.cz>
3
4 VERSION=1.0.1
5 #DEBUG=-ggdb
6 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -Winline $(DEBUG) -std=gnu99
7
8 CC=gcc-4.1.1
9
10 # Comment out if you are using a recent gcc
11 CFLAGS+=-Wno-pointer-sign -Wdisabled-optimization -Wno-missing-field-initializers
12
13 # Comment out if you do not wish to build remote submit utilities
14 #SUBMIT=submit
15 #LIBUCW:=$(shell cd ../holmes-libs-3.12/run && pwd)
16
17 export LIBUCW CFLAGS LDFLAGS DEBUG
18
19 all: bin/box bin/iwrapper bin/md5crypt bin/pedant $(SUBMIT)
20
21 bin/%: src/%.o
22         $(CC) $(LDFLAGS) -o $@ $^
23
24 bin/box: src/box.o
25 bin/iwrapper: src/iwrapper.o
26 bin/md5crypt: src/md5crypt.o src/md5.o
27 bin/pedant: src/pedant.o
28
29 submit:
30
31 clean::
32         rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
33         rm -f bin/box bin/iwrapper bin/md5crypt bin/pedant
34
35 distclean: clean
36
37 ifdef SUBMIT
38
39 submit:
40         $(MAKE) -C submit
41
42 clean::
43         $(MAKE) -C submit clean
44
45 endif
46
47 .PHONY: all clean distclean submit