2 ## @(#)Makefile 1.00 Jan. 11, 2000
4 ## Makefile for syslogd/klogd
11 EXTRA
= -DPIDFILE
=\"/var
/run
/syslogd.pid
\"
12 CPPFLAGS
= -D_MINIX
-D_POSIX_SOURCE
-Ddebug
=0 $(EXTRA
) -I.
13 CFLAGS
= -m
-O
$(CPPFLAGS
)
14 MKDEP
= mkdep
"$(CC) -E $(CPPFLAGS)"
16 TARGETS
= logger syslogd
18 SRCS
= logger.c syslog.c syslog_test.c syslogd.c
19 OBJS
= logger.o syslog.o syslog_test.o syslogd.o
27 syslog_test
: syslog_test.o syslog.o
28 $(CC
) syslog_test.o syslog.o
$(LDFLAGS
)
31 logger
: logger.o syslog.o
32 $(CC
) logger.o syslog.o
$(LDFLAGS
)
36 $(RM
) $(OBJS
) $(TARGETS
) syslog_test
*.BAK core
38 install: $(BINDIR
)/logger
$(BINDIR
)/syslog_test
$(BINDIR
)/syslogd
39 $(BINDIR
)/logger
: logger
40 install -cs
-m
755 -o bin
-g operator
$?
$@
41 $(BINDIR
)/syslog_test
: syslog_test
42 install -cs
-m
755 -o bin
-g operator
$?
$@
43 $(BINDIR
)/syslogd
: syslogd
44 install -cs
-m
700 -o root
-g operator
$?
$@