summaryrefslogtreecommitdiff
path: root/send/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'send/Makefile')
-rw-r--r--send/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/send/Makefile b/send/Makefile
new file mode 100644
index 0000000..100e6df
--- /dev/null
+++ b/send/Makefile
@@ -0,0 +1,24 @@
+CFLAGS = -ggdb -D_GNU_SOURCE
+LIBS = `pkg-config --libs openssl`
+
+SRC = sendd.c send.c users.c
+OBJ = $(SRC:.c=.o)
+
+all: sendd
+
+.c.o:
+ cc -c ${CFLAGS} $<
+
+sendd: sendd.o send.o users.o
+ cc sendd.o users.o -o sendd ${CFLAGS} ${LIBS}
+ cc send.o users.o -o send ${CFLAGS} ${LIBS}
+
+install: sendd
+ cp sendd send addevent delevent sortevents agenda /usr/local/bin/
+
+uninstall:
+ rm /usr/local/bin/sendd
+ rm /usr/local/bin/send
+
+clean:
+ rm -rf *.o sendd send