CFLAGS=-g3 LIBS= CFLAGS+=$(shell pkg-config --cflags gnutls) LIBS+=$(shell pkg-config --libs gnutls) CFLAGS+=$(shell pkg-config --cflags sqlite3) LIBS+=$(shell pkg-config --libs sqlite3) chatd: src/chat.o src/users.o src/channels.o src/httpcam.o src/db.o libwebsocket/libwebsocket.so $(CC) -Wl,-R,libwebsocket $^ $(LIBS) -o $@ libwebsocket/libwebsocket.so: make -C libwebsocket clean: make -C libwebsocket clean rm -f chatd src/*.o