-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (27 loc) · 971 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (27 loc) · 971 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
PREFIX = /usr/local
MANDIR = $(PREFIX)/share/man
CDEBUGFLAGS = -Os -g -Wall
DEFINES = $(PLATFORM_DEFINES)
CFLAGS = $(CDEBUGFLAGS) $(DEFINES) $(EXTRA_DEFINES)
LDLIBS = -lrt
SRCS = shncpd.c state.c send.c receive.c ra.c dhcpv4.c prefix.c \
local.c trickle.c kernel.c util.c md5.c
OBJS = shncpd.o state.o send.o receive.o ra.o dhcpv4.o prefix.o \
local.o trickle.o kernel.o util.o md5.o
shncpd: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o shncpd $(OBJS) $(LDLIBS)
.SUFFIXES: .man
.PHONY: all install install.minimal uninstall clean
all: shncpd shncpd.man
install.minimal: shncpd
-rm -f $(TARGET)$(PREFIX)/bin/shncpd
mkdir -p $(TARGET)$(PREFIX)/bin
cp -f shncpd $(TARGET)$(PREFIX)/bin
install: install.minimal all
mkdir -p $(TARGET)$(MANDIR)/man8
cp -f shncpd.man $(TARGET)$(MANDIR)/man8/shncpd.8
uninstall:
-rm -f $(TARGET)$(PREFIX)/bin/shncpd
-rm -f $(TARGET)$(MANDIR)/man8/shncpd.8
clean:
-rm -f shncpd shncpd.html *.o *~ core TAGS gmon.out