Home | History | Annotate | Line # | Download | only in cipher
Makefile revision 1.1
      1  1.1  christos #
      2  1.1  christos # To run the demos when linked with a shared library (default) ensure that
      3  1.1  christos # libcrypto is on the library path.  For example:
      4  1.1  christos #
      5  1.1  christos #    LD_LIBRARY_PATH=../.. ./aesccm
      6  1.1  christos 
      7  1.1  christos TESTS = aesccm \
      8  1.1  christos         aesgcm \
      9  1.1  christos         aeskeywrap \
     10  1.1  christos         ariacbc
     11  1.1  christos 
     12  1.1  christos CFLAGS  = -I../../include -g -Wall
     13  1.1  christos LDFLAGS = -L../..
     14  1.1  christos LDLIBS  = -lcrypto
     15  1.1  christos 
     16  1.1  christos all: $(TESTS)
     17  1.1  christos 
     18  1.1  christos aesccm: aesccm.o
     19  1.1  christos aesgcm: aesgcm.o
     20  1.1  christos aeskeywrap: aeskeywrap.o
     21  1.1  christos ariacbc: ariacbc.o
     22  1.1  christos 
     23  1.1  christos $(TESTS):
     24  1.1  christos 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
     25  1.1  christos 
     26  1.1  christos clean:
     27  1.1  christos 	$(RM) $(TESTS) *.o
     28  1.1  christos 
     29  1.1  christos .PHONY: test
     30  1.1  christos test: all
     31  1.1  christos 	@echo "\nCipher tests:"
     32  1.1  christos 	@set -e; for tst in $(TESTS); do \
     33  1.1  christos 		echo "\n"$$tst; \
     34  1.1  christos 		LD_LIBRARY_PATH=../.. ./$$tst; \
     35  1.1  christos 	done
     36