openssl/demos/err/Makefile
2014-02-02 22:58:19 +00:00

18 lines
358 B
Makefile

# Minimal makefile to generate error codes and link a test app
SRC= main.c
OBJ= main.o
HEADER=test_err.h
ERROBJ= test_err.o
CC=gcc
CFLAGS=-I../../include
LDFLAGS=-L../.. -lcrypto
PERL=perl
testapp: $(OBJ) $(ERROBJ) $(HEADER)
$(CC) -o testapp $(OBJ) $(ERROBJ) $(LDFLAGS)
errors:
$(PERL) ../../util/mkerr.pl -conf test_err.ec \
-nostatic -write $(SRC)