Makefile: change the permission of the executable to 100
[smtp.git] / Makefile
blob3e5055e1830a3aaa54102c2a9c71f13723d4ee8c
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 = -lpolarssl
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