summaryrefslogtreecommitdiffstats
path: root/examples/Makefile
diff options
context:
space:
mode:
authorPawel Salek <pawsa@damage.localdomain>2010-03-04 22:21:56 +0100
committerPawel Salek <pawsa@damage.localdomain>2010-03-04 22:21:56 +0100
commitaf79dfa2d055053c1027e20cf08f0549dc2e9ada (patch)
treec1fbf971ebdf7913e0325313b701e7f2d2fa9c17 /examples/Makefile
downloadlibesmtp-af79dfa2d055053c1027e20cf08f0549dc2e9ada.tar.gz
libesmtp-af79dfa2d055053c1027e20cf08f0549dc2e9ada.tar.xz
libesmtp-af79dfa2d055053c1027e20cf08f0549dc2e9ada.zip
Initial Commit
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile
new file mode 100644
index 0000000..70820ed
--- /dev/null
+++ b/examples/Makefile
@@ -0,0 +1,15 @@
+
+OBJECTS = mail-file.o
+LIBESMTP = `libesmtp-config --libs`
+CFLAGS := $(CFLAGS) -std=c99 -pedantic -O2 -g -W -Wall `libesmtp-config --cflags`
+
+all: mail-file-a mail-file-so
+
+mail-file-a: $(OBJECTS)
+ $(CC) -g -static $(OBJECTS) $(LIBESMTP) -o mail-file-a
+
+mail-file-so: $(OBJECTS)
+ $(CC) -g $(OBJECTS) $(LIBESMTP) -o mail-file-so
+
+clean:
+ rm -f *.o core mail-file-a mail-file-so