Fixes for /usr/xbin binaries bootstrap dir.
[minix3.git] / commands / syslogd / Makefile
blob66094bb24ccbc5489618c0b87974b955c7c2e283
1 ##
2 ## @(#)Makefile 1.00 Jan. 11, 2000
3 ##
4 ## Makefile for syslogd/klogd
5 ## $Id$
7 BINDIR = /usr/bin
9 CC = exec cc
10 RM = rm -f
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)"
15 LDFLAGS = -i -o $@
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
21 all: $(TARGETS)
23 syslogd: syslogd.o
24 $(CC) $? $(LDFLAGS)
25 @install -S 8kw $@
27 syslog_test: syslog_test.o syslog.o
28 $(CC) syslog_test.o syslog.o $(LDFLAGS)
29 @install -S 2kw $@
31 logger: logger.o syslog.o
32 $(CC) logger.o syslog.o $(LDFLAGS)
33 @install -S 2kw $@
35 clean:
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 $? $@