/tests/Makefile
Makefile | 18 lines | 12 code | 6 blank | 0 comment | 0 complexity | 0faf01105514d67441059087b556bac7 MD5 | raw file
1OUT=websocket pubsub 2CFLAGS=-O3 -Wall -Wextra 3LDFLAGS=-levent -lpthread -lrt 4 5all: $(OUT) Makefile 6 7websocket: websocket.o 8 $(CC) -o $@ $< $(LDFLAGS) 9 10pubsub: pubsub.o 11 $(CC) -o $@ $< $(LDFLAGS) 12 13%.o: %.c Makefile 14 $(CC) -c $(CFLAGS) -o $@ $< 15 16clean: 17 rm -f *.o $(OUT) 18