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