Rev | Line | |
---|
[9] | 1 | ##
|
---|
| 2 | ## @(#)Makefile 1.00 Jan. 11, 2000
|
---|
| 3 | ##
|
---|
| 4 | ## Makefile for syslogd/klogd
|
---|
| 5 | ## $Id: Makefile,v 1.2 2006/04/04 12:52:22 beng Exp $
|
---|
| 6 |
|
---|
| 7 | BINDIR = /usr/bin
|
---|
| 8 |
|
---|
| 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
|
---|
| 17 |
|
---|
| 18 | SRCS = logger.c syslog.c syslog_test.c syslogd.c
|
---|
| 19 | OBJS = logger.o syslog.o syslog_test.o syslogd.o
|
---|
| 20 |
|
---|
| 21 | all: $(TARGETS)
|
---|
| 22 |
|
---|
| 23 | syslogd: syslogd.o
|
---|
| 24 | $(CC) $? $(LDFLAGS)
|
---|
| 25 | @install -S 8kw $@
|
---|
| 26 |
|
---|
| 27 | syslog_test: syslog_test.o syslog.o
|
---|
| 28 | $(CC) syslog_test.o syslog.o $(LDFLAGS)
|
---|
| 29 | @install -S 2kw $@
|
---|
| 30 |
|
---|
| 31 | logger: logger.o syslog.o
|
---|
| 32 | $(CC) logger.o syslog.o $(LDFLAGS)
|
---|
| 33 | @install -S 2kw $@
|
---|
| 34 |
|
---|
| 35 | clean:
|
---|
| 36 | $(RM) $(OBJS) $(TARGETS) syslog_test *.BAK core
|
---|
| 37 |
|
---|
| 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 $? $@
|
---|
Note:
See
TracBrowser
for help on using the repository browser.