Makefile, better gitignore

This commit is contained in:
Ian Gulliver
2015-06-06 14:32:52 -07:00
parent d9e3bd727e
commit 22e6ff8090
3 changed files with 15 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1 +1,3 @@
*.pyc
*.o
*.so

View File

@@ -1,2 +1,13 @@
test: test.c
gcc -g -I/usr/local/include -L/usr/local/lib -o test test.c -lcurl -ljansson
CC ?= gcc
CFLAGS ?= -Wall -Werror -I/usr/local/include -fpic
LDFLAGS ?= -Wall -L/usr/local/lib -L.
LIBS ?= -lcurl -ljansson
test: test.o libcosmopolite.so
$(CC) $(LDFLAGS) -o test test.o -lcosmopolite $(LIBS)
libcosmopolite.so: cosmopolite.o
$(CC) -shared $(LDFLAGS) -o libcosmopolite.so cosmopolite.o
%.o: %.c
$(CC) -c $(CFLAGS) $< -o $@

0
clients/c/cosmopolite.c Normal file
View File