blob: 430bf5f543457b39d300545b0475106596ae2565 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
OS=$(shell uname)
OBJECTS=linenoise.o encodings/utf8.o linenoiselib.o
ifeq ($(OS),Darwin)
linenoise.dylib: $(OBJECTS)
gcc -o $@ -bundle -undefined dynamic_lookup $^ $(OPT_LIB)
else
CFLAGS=-fPIC -I/usr/include/lua5.1
linenoise.so: $(OBJECTS)
gcc -o $@ -shared $^ $(OPT_LIB)
endif
clean:
rm -f *.o encodings/*.o *.so *.dylib
|