summaryrefslogtreecommitdiff
path: root/plugins/converter/Makefile
blob: 2c58d6a34627732ab5d762a85060267b48e9140e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
OUT=converter.so

CC=gcc

CFLAGS+=-Wall -D_GNU_SOURCE -std=c99 -I../..

LDFLAGS+=-module -shared -fPIC

SOURCES=converter.c

OBJECTS=$(SOURCES:.c=.o)

all: $(SOURCES) $(OUT)

$(OUT): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.c.o:
	$(CC) $(CFLAGS) $< -c -o $@

clean:
	rm $(OBJECTS) $(OUT)