summaryrefslogtreecommitdiff
path: root/libgs/Makefile
blob: 87145196174b64cd57bd43d9b91579ca59dfc1e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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