aboutsummaryrefslogtreecommitdiff
path: root/plugins/makefile
blob: feab4cdb000d9f8256c0798111c4eb4139dfd9fb (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

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)