Add stand-alone example program w/ Makefile and README

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2019-11-05 08:13:55 +01:00
parent 0ade961e60
commit 225d8da17f
6 changed files with 115 additions and 1 deletions

10
example/example.mk Normal file
View File

@ -0,0 +1,10 @@
# Simple Makefile for syslogp() example application
#
EXEC := example
OBJS := example.o
CFLAGS := `pkg-config --cflags libsyslog`
LDLIBS := `pkg-config --libs --static libsyslog`
all: $(EXEC)
$(EXEC): $(OBJS)