aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 9ed6711c0b5bad7921a0fdadba90da8fc04b5150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
PLUGINPATH=plugins/

CFLAGS=-g -Wall -Wpedantic -DPLUGINS=\"$(PLUGINPATH)\"
LDLIBS=-lnettle -ldl

OBJECTS=builtins.o network.o websocket.o plugin.o

all: websocksy

websocksy: websocksy.c websocksy.h $(OBJECTS)
	$(CC) $(CFLAGS) $(LDLIBS) $< -o $@ $(OBJECTS)

clean:
	$(RM) $(OBJECTS)
	$(RM) websocksy