Skip to content

Commit 8d35d67

Browse files
Add target to run the example
1 parent b0585f3 commit 8d35d67

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ tests: tests/test_libproxyprotocol
3737
tests/test_libproxyprotocol: tests/test.o libs/libproxyprotocol.so
3838
$(CC) -Llibs/ ${CFLAGS} -o $@ $< -lproxyprotocol
3939

40+
example: examples/client_server
41+
LD_LIBRARY_PATH=libs/ $<
42+
4043
examples/client_server: examples/client_server.o libs/libproxyprotocol.so
4144
$(CC) -Llibs/ ${CFLAGS} -o $@ $< -lproxyprotocol
4245

0 commit comments

Comments
 (0)