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