Home | History | Annotate | Line # | Download | only in encode
      1  1.1  christos #
      2  1.1  christos # To run the demos when linked with a shared library (default) ensure
      3  1.1  christos # that libcrypto is on the library path.  For example:
      4  1.1  christos #
      5  1.1  christos #    LD_LIBRARY_PATH=../.. ./rsa_encode
      6  1.1  christos 
      7  1.1  christos TESTS = ec_encode \
      8  1.1  christos         rsa_encode
      9  1.1  christos 
     10  1.1  christos CFLAGS  = -I../../include -g -Wall
     11  1.1  christos LDFLAGS = -L../..
     12  1.1  christos LDLIBS  = -lcrypto
     13  1.1  christos 
     14  1.1  christos all: $(TESTS)
     15  1.1  christos 
     16  1.1  christos ec_encode: ec_encode.o
     17  1.1  christos rsa_encode: rsa_encode.o
     18  1.1  christos 
     19  1.1  christos $(TESTS):
     20  1.1  christos 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
     21  1.1  christos 
     22  1.1  christos clean:
     23  1.1  christos 	$(RM) *.o $(TESTS)
     24  1.1  christos 
     25  1.1  christos .PHONY: test
     26  1.1  christos test: all
     27  1.1  christos 	@echo "\nencode tests:"
     28  1.1  christos 	@echo "skipped"
     29