add Makefile
This commit is contained in:
parent
af3a063299
commit
ad2c32f87e
4
.gitignore
vendored
4
.gitignore
vendored
@ -137,6 +137,4 @@ m4/lt~obsolete.m4
|
|||||||
# Generated Makefile
|
# Generated Makefile
|
||||||
# (meta build system like autotools,
|
# (meta build system like autotools,
|
||||||
# can automatically generate from config.status script
|
# can automatically generate from config.status script
|
||||||
# (which is called by configure script))
|
# (which is called by configure script)
|
||||||
Makefile
|
|
||||||
|
|
||||||
|
33
Makefile
Normal file
33
Makefile
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
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
|
Loading…
Reference in New Issue
Block a user