summaryrefslogtreecommitdiff
path: root/libgs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libgs/Makefile')
-rw-r--r--libgs/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/libgs/Makefile b/libgs/Makefile
new file mode 100644
index 0000000..8714519
--- /dev/null
+++ b/libgs/Makefile
@@ -0,0 +1,48 @@
+.POSIX:
+CC=cc
+CFLAGS=-pedantic -o2 -pipe -Wall -Wextra -Wno-unused-parameter -fPIC -shared
+LDFLAGS=-lcurl -ljansson
+TARGET=libgs.so
+
+OBJECTS=src/gs.o \
+ src/app.o \
+ src/account.o \
+ src/auth.o \
+ src/client.o \
+ src/http.o \
+ src/log.o \
+ src/timeline.o \
+ src/status.o \
+ src/string-util.o
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS)
+ $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LDFLAGS)
+
+.c.o:
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+clean:
+ rm -f src/*.o
+ rm -f $(TARGET)
+
+src/account.o: src/account.c src/account.h src/log.h
+src/app.o: src/app.c src/app.h src/http.h src/log.h
+src/auth.o: src/auth.c src/auth.h src/client.h src/log.h \
+ src/string-util.h
+src/client.o: src/client.c src/client.h src/http.h src/log.h \
+ src/string-util.h
+src/config.o: src/config.c src/string-util.h src/config.h src/log.h
+src/gs.o: src/gs.c src/gs.h src/app.h src/account.h src/auth.h \
+ src/client.h src/http.h src/log.h src/string-util.h src/status.h \
+ src/timeline.h
+src/http.o: src/http.c src/string-util.h src/auth.h src/client.h \
+ src/log.h
+src/instance_info.o: src/instance_info.c src/instance_info.h src/log.h
+src/log.o: src/log.c src/log.h
+src/status.o: src/status.c src/status.h src/account.h src/log.h
+src/string-util.o: src/string-util.c
+src/timeline.o: src/timeline.c src/timeline.h src/status.h src/account.h \
+ src/client.h src/auth.h src/config.h src/http.h src/string-util.h \
+ src/log.h