aboutsummaryrefslogtreecommitdiff
path: root/plugins/makefile
blob: f0b38cb4e1b5f46c3f85cb1adea2cbdff7d0cbff (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 framing_dynamic32.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)