source: trunk/minix/commands/ftpd200/Makefile@ 15

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

Minix 3.1.2a

File size: 940 bytes
Line 
1# Makefile for ftpd
2#
3# 01/25/96 Initial Release Michael Temari, <Michael@TemWare.Com>
4# 2005-02-25 version 2.00
5
6CFLAGS= -O -D_MINIX -D_POSIX_SOURCE -m
7LDFLAGS=-i
8BINDIR= /usr/bin
9PROG= in.ftpd
10MANDIR= /usr/man/man8
11MANPAGE=ftpd.8
12CC = exec cc
13
14OBJS= ftpd.o access.o file.o net.o
15
16all: $(PROG)
17
18$(PROG): $(OBJS)
19 $(CC) $(LDFLAGS) -o $@ $(OBJS)
20 install -S 8kw $@
21
22clean:
23 rm -f $(PROG) $(OBJS)
24
25install: $(BINDIR)/$(PROG) $(BINDIR)/setup.anonftp $(BINDIR)/ftpdsh
26
27$(BINDIR)/$(PROG): $(PROG)
28 install -cs -o bin $? $@
29
30$(BINDIR)/setup.anonftp: setup.anonftp
31 install -c -o bin $? $@
32
33$(BINDIR)/ftpdsh: ftpdsh
34 install -m 755 -c -o bin $? $@
35
36ftpd.o: ftpd.c ftpd.h access.h file.h net.h
37access.o: access.c ftpd.h access.h
38file.o: file.c ftpd.h access.h file.h net.h
39net.o: net.c ftpd.h net.h
40
41installman: $(MANDIR)/$(MANPAGE)
42 cp $(MANPAGE) $(MANDIR)
43 echo "You may need to run makewhatis to update man page index"
Note: See TracBrowser for help on using the repository browser.