You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
265 B
Makefile

OUT=websocket pubsub
CFLAGS=-O3 -Wall -Wextra
LDFLAGS=-levent -lpthread
all: $(OUT) Makefile
websocket: websocket.o
$(CC) -o $@ $< $(LDFLAGS)
pubsub: pubsub.o
$(CC) -o $@ $< $(LDFLAGS)
%.o: %.c Makefile
$(CC) -c $(CFLAGS) -o $@ $<
clean:
rm -f *.o $(OUT)