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
10 # Comment out if you are using a recent gcc
11 CFLAGS+=-Wno-pointer-sign -Wdisabled-optimization -Wno-missing-field-initializers
13 # Comment out if you do not wish to build remote submit utilities
15 #LIBUCW:=$(shell cd ../holmes-libs-3.12/run && pwd)
17 export LIBUCW CFLAGS LDFLAGS DEBUG
19 all: bin/box bin/iwrapper bin/md5crypt bin/pedant $(SUBMIT)
22 $(CC) $(LDFLAGS) -o $@ $^
25 bin/iwrapper: src/iwrapper.o
26 bin/md5crypt: src/md5crypt.o src/md5.o
27 bin/pedant: src/pedant.o
29 src/box.o: src/box.c src/syscall-table.h
37 rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
38 rm -f src/syscall-table.h
39 rm -f bin/box bin/iwrapper bin/md5crypt bin/pedant
49 $(MAKE) -C submit clean
53 .PHONY: all clean distclean submit