source: trunk/minix/commands/syslogd/Makefile@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.1 KB
RevLine 
[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
7BINDIR = /usr/bin
8
9CC = exec cc
10RM = rm -f
11EXTRA = -DPIDFILE=\"/var/run/syslogd.pid\"
12CPPFLAGS= -D_MINIX -D_POSIX_SOURCE -Ddebug=0 $(EXTRA) -I.
13CFLAGS = -m -O $(CPPFLAGS)
14MKDEP = mkdep "$(CC) -E $(CPPFLAGS)"
15LDFLAGS = -i -o $@
16TARGETS = logger syslogd
17
18SRCS = logger.c syslog.c syslog_test.c syslogd.c
19OBJS = logger.o syslog.o syslog_test.o syslogd.o
20
21all: $(TARGETS)
22
23syslogd: syslogd.o
24 $(CC) $? $(LDFLAGS)
25 @install -S 8kw $@
26
27syslog_test: syslog_test.o syslog.o
28 $(CC) syslog_test.o syslog.o $(LDFLAGS)
29 @install -S 2kw $@
30
31logger: logger.o syslog.o
32 $(CC) logger.o syslog.o $(LDFLAGS)
33 @install -S 2kw $@
34
35clean:
36 $(RM) $(OBJS) $(TARGETS) syslog_test *.BAK core
37
38install: $(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.