2011-06-26 11:52:02 +00:00
|
|
|
CC = gcc
|
|
|
|
LD = gcc
|
|
|
|
LDFLAGS = -Wall -O2 -std=c99
|
2011-08-01 17:32:32 +00:00
|
|
|
EXES = main
|
2011-06-26 11:52:02 +00:00
|
|
|
TESTFILE= test.out
|
|
|
|
|
|
|
|
all: $(EXES)
|
|
|
|
|
|
|
|
% : %.c
|
|
|
|
$(LD) $(LDFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(EXES) $(TESTFILE)
|
|
|
|
|
|
|
|
tests: all
|
|
|
|
./xxtea -o $(TESTFILE) test/in.1
|
|
|
|
cmp $(TESTFILE) test/out.1
|
|
|
|
$(RM) $(TESTFILE)
|