forked from folkertvanheusden/omnisync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (21 loc) · 792 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
VERSION=1.0
DEBUG=-g -pedantic #-pg #-fprofile-arcs
LDFLAGS=-lssl -lcrypto -lm -lsnmp $(DEBUG) -flto
CFLAGS+=-O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) -flto
OBJS=error.o log.o utils.o utils2.o daytime.o time.o mssl.o http.o snts.o irc.o icmp.o ntpd.o snmp.o simpleptp.o socks5sntp.o main.o sntp.o
all: omnisync
omnisync: $(OBJS)
$(CC) -Wall $(OBJS) $(LDFLAGS) -o omnisync
install: omnisync
cp omnisync $(DESTDIR)/usr/local/sbin
uninstall: clean
rm -f $(DESTDIR)/usr/local/sbin/omnisync
clean:
rm -f $(OBJS) omnisync core gmon.out *.da
package: clean
# source package
rm -rf omnisync-$(VERSION)*
mkdir omnisync-$(VERSION)
cp *.c *.h *akefile* readme.txt Changes license.txt omnisync-$(VERSION)
tar czf omnisync-$(VERSION).tgz omnisync-$(VERSION)
rm -rf omnisync-$(VERSION)