limap/Makefile

34 lines
548 B
Makefile
Raw Normal View History

2023-06-23 09:27:37 +02:00
LUAINC?=/usr/include
CC?=gcc
OBJS = limap.o
.PHONY: limap clean uwimap all
#$(OBJS)
CFLAGS =
LDFLAGS = -lcrypt -lssl -lcrypto
all: uwimap limap
@echo "DONE"
uwimap:
cd imap && make slx EXTRACFLAGS="-fPIC -I/usr/include/openssl"
%.o: %.c
@echo "building obj files"
$(CC) -I$(LUAINC) -I./imap/c-client/ -fPIC $(CFLAGS) -c $< -o $@
limap: $(OBJS)
@echo "building shared library"
$(CC) -shared \
$(OBJS) \
imap/c-client/c-client.a \
$(LDFLAGS) -o limap.so
clean:
@echo "Clean all"
cd imap && make clean
- rm -rf *.o *.so *.a