summaryrefslogtreecommitdiffstats
path: root/demos/encode/Makefile
blob: dc556a524a0ce8b94fd85f4650bfbae4dc7f3868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# To run the demos when linked with a shared library (default) ensure
# that libcrypto is on the library path.  For example:
#
#    LD_LIBRARY_PATH=../.. ./rsa_encode

TESTS = ec_encode \
        rsa_encode

CFLAGS  = -I../../include -g -Wall
LDFLAGS = -L../..
LDLIBS  = -lcrypto

all: $(TESTS)

ec_encode: ec_encode.o
rsa_encode: rsa_encode.o

$(TESTS):
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)

clean:
	$(RM) *.o $(TESTS)

.PHONY: test
test: all
	@echo "\nencode tests:"
	@echo "skipped"