Fix off-by-one error in null termination of decrypted messages.
[easyotp.git] / Makefile
blob5bd4ad5a1337e1fce91f93ecb5b2e0a6a81b4b1d
1 CC=gcc
2 CFLAGS=-g -Wall -pedantic
3 LD=$(CC)
4 LDFLAGS=
5 RM=rm
7 EXE=try
8 SRCS=libotp.c try.c base64.c
9 OBJS=${SRCS:.c=.o}
10 HEADERS=libotp.h base64.h
12 .c.o:
13 $(CC) $(CFLAGS) -c $<
15 all : $(EXE)
17 $(EXE) : $(OBJS)
18 $(LD) -o $@ $(OBJS)
20 $(OBJS) : $(HEADERS)
22 clean:
23 -$(RM) -f $(EXE) $(OBJS)