Demo of use of errors in applications.
[openssl.git] / demos / err / Makefile
1 # Minimal makefile to generate error codes and link a test app
2 SRC= main.c
3 OBJ= main.o
4 HEADER=test_err.h
5 ERROBJ= test_err.o
6 CC=gcc
7 CFLAGS=-I../../include
8 LDFLAGS=-L../.. -lcrypto
9
10 PERL=perl
11
12 testapp: $(OBJ) $(ERROBJ) $(HEADER)
13         $(CC) -o testapp $(OBJ) $(ERROBJ) $(LDFLAGS)
14         
15 errors:
16         $(PERL) ../../util/mkerr.pl -conf test_err.ec \
17                 -nostatic -write $(SRC)