summaryrefslogtreecommitdiffstats
path: root/demos/err/Makefile
blob: 81503c8ed800ca0f39f5fc583d7936cdf7bbaac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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)