-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (37 loc) · 765 Bytes
/
Makefile
File metadata and controls
49 lines (37 loc) · 765 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
#
SOURCES= README Makefile LICENSE plug.1 plug.c plug.h config.h includes.h
VER=2.5.5
T=plugdaemon-$(VER)
# dietlibc with al
#CC=/opt/diet/bin/diet -v -Os cc
#CFLAGS=-O2 -Wall -s -static
#LFLAGS=-s -static
# gcc
CC=cc
CFLAGS=-O -g -Wall
LFLAGS=
# cc
#CC=cc
#CFLAGS=-O -g
#LFLAGS=
#Solaris / other System V toolchains
#LIBS=-lsocket -lnsl
LIBS=
all: plug plug.doc
plug: plug.o
$(CC) $(LFLAGS) plug.o -o plug $(LIBS)
plug.o: plug.h config.h Makefile
plug.doc: plug.1 Makefile
nroff -man plug.1 | col > plug.doc
clean:
rm -f plug plug.o plug.doc
$T.tgz: $(SOURCES)
mkdir $T
cp -p $(SOURCES) $T
tar cvf - $T | gzip > $T.tgz
rm -r $T
tar: $T.tgz
install: plug
install -C -m 0755 plug /usr/local/sbin
install -C -m 0644 plug.1 /usr/local/man/man1