/tests/Makefile

http://github.com/nicolasff/webdis · Makefile · 18 lines · 12 code · 6 blank · 0 comment · 0 complexity · 0faf01105514d67441059087b556bac7 MD5 · raw file

  1. OUT=websocket pubsub
  2. CFLAGS=-O3 -Wall -Wextra
  3. LDFLAGS=-levent -lpthread -lrt
  4. all: $(OUT) Makefile
  5. websocket: websocket.o
  6. $(CC) -o $@ $< $(LDFLAGS)
  7. pubsub: pubsub.o
  8. $(CC) -o $@ $< $(LDFLAGS)
  9. %.o: %.c Makefile
  10. $(CC) -c $(CFLAGS) -o $@ $<
  11. clean:
  12. rm -f *.o $(OUT)