sm*: clean up sml, smq, and smr
[smtp.git] / Makefile
blobf0c2328843a09e0dd6a9c87aaabbb6a830e3583c
1 # common options
2 CC = cc
4 # for openssl
5 OBJS = smtp.o conn_openssl.o
6 CFLAGS = -Wall -O2
7 LDFLAGS = -lssl
9 # for mbedtls (polarssl)
10 #OBJS = smtp.o conn_mbedtls.o
11 #CFLAGS = -Wall -O2
12 #LDFLAGS = -lmbedx509 -lmbedtls -lmbedcrypto
14 all: smtp
15 %.o: %.c conf.h
16 $(CC) -c $(CFLAGS) $<
17 smtp: $(OBJS)
18 $(CC) -o $@ $(OBJS) $(LDFLAGS)
19 chmod 100 $@
20 clean:
21 rm -f *.o smtp