1 # Makefile for mo-eval and related utilities
2 # (c) 2007 Martin Mares <mj@ucw.cz>
6 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -Winline $(DEBUG) -std=gnu99
8 # Comment out if you are using a recent gcc
9 CFLAGS+=-Wno-pointer-sign -Wdisabled-optimization -Wno-missing-field-initializers
11 # Comment out if you do not wish to build remote submit utilities
13 LIBUCW:=$(shell cd ../libucw && pwd)
15 export LIBUCW CFLAGS LDFLAGS DEBUG
17 all: bin/box bin/iwrapper bin/md5crypt bin/pedant $(SUBMIT)
20 $(CC) $(LDFLAGS) -o $@ $^
23 bin/iwrapper: src/iwrapper.o
24 bin/md5crypt: src/md5crypt.o src/md5.o
25 bin/pedant: src/pedant.o
30 rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
31 rm -f bin/box bin/iwrapper bin/md5crypt bin/pedant
41 $(MAKE) -C submit clean
45 .PHONY: all clean distclean submit