summaryrefslogtreecommitdiffstats
path: root/makedev-1.4.1/Makefile
blob: 2902786586481f07c17df821724029889196d50a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Makefile -- Makefile for util-linux Linux utilities
# Created: Sat Feb 11 13:47:13 1995
# Revised: Wed Feb 22 16:09:38 1995 by faith@cs.unc.edu
# Copyright 1992, 1993, 1994, 1995 Rickard E. Faith (faith@cs.unc.edu)
#

include ../MCONFIG

# Where to put man pages?

MAN5= 		devinfo.5 makedev.cfg.5
MAN8=		MAKEDEV-C.8

# Where to put binaries?
# See the "install" rule for the links. . .

DEV=		MAKEDEV-C

# Where to put data?

FILES=		devinfo makedev.cfg

all: $(DEV)

%.o: %.c
	$(CC) -c $(CFLAGS) $< -o $@

# Rules for everything else

MAKEDEV-C: makedev.o
	$(CC) $(LDFLAGS) $< -o $@

install: all
	$(INSTALLDIR) $(DEVDIR) $(ETCDIR)
	$(INSTALLDAT) $(FILES) $(ETCDIR)
	$(INSTALLBIN) $(DEV) $(DEVDIR)
	$(INSTALLDIR) $(MAN5DIR) $(MAN8DIR)
	$(INSTALLMAN) $(MAN5) $(MAN5DIR)
	$(INSTALLMAN) $(MAN8) $(MAN8DIR)

.PHONY:	clean
clean:
	-rm -f *.o *~ core $(DEV)