aboutsummaryrefslogtreecommitdiff
path: root/plugins/makefile
blob: b09466d58ef033e6c9e5471bc6c621b3b50263c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.PHONY: all clean
PLUGINS = backend_file.so framing_fixedlength.so framing_json.so

CFLAGS += -fPIC -g -I../
LDFLAGS += -shared

%.so :: %.c %.h
	$(CC) $(CFLAGS) $(LDLIBS) $< -o $@ $(LDFLAGS)

%.so :: %.c
	$(CC) $(CFLAGS) $(LDLIBS) $< -o $@ $(LDFLAGS)

all: $(PLUGINS)

clean:
	$(RM) $(PLUGINS)