File: Makefile

package info (click to toggle)
lxtools 1.1-3
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 164 kB
  • ctags: 169
  • sloc: ansic: 1,539; makefile: 66
file content (56 lines) | stat: -rw-r--r-- 1,565 bytes parent folder | download | duplicates (2)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
# CC = gcc -Wall
INC = pal.h palfiler.h palpriv.h config.h
BINS = lxdir lxcopy lxdel lxmkdir lxrmdir
all : $(BINS)

clean:
	/bin/rm -f *.o core

reallyclean:
	/bin/rm -f *.o core $(BINS)

lxdir : lxdir.o filer.o filercb.o asdfiler.o gtdfiler.o synfiler.o
	$(CC) -o lxdir lxdir.o filer.o filercb.o asdfiler.o gtdfiler.o synfiler.o 

lxdel : lxdel.o filer.o filercb.o asdfiler.o gtdfiler.o synfiler.o delfiler.o
	$(CC) -o lxdel lxdel.o filer.o filercb.o asdfiler.o gtdfiler.o synfiler.o delfiler.o

lxrmdir : lxrmdir.o filer.o filercb.o asdfiler.o gtdfiler.o synfiler.o rmdfiler.o
	$(CC) -o lxrmdir lxrmdir.o filer.o filercb.o asdfiler.o gtdfiler.o synfiler.o rmdfiler.o

lxmkdir : lxmkdir.o filer.o filercb.o asdfiler.o gtdfiler.o synfiler.o mkdfiler.o
	$(CC) -o lxmkdir lxmkdir.o filer.o filercb.o asdfiler.o gtdfiler.o synfiler.o mkdfiler.o

lxcopy : lxcopy.o filer.o filercb.o asdfiler.o gtdfiler.o synfiler.o getfiler.o sndfiler.o mkdfiler.o
	$(CC) -o lxcopy lxcopy.o filer.o filercb.o asdfiler.o gtdfiler.o synfiler.o getfiler.o sndfiler.o mkdfiler.o

lxdir.o : lxdir.c $(INC)

lxcopy.o : lxcopy.c $(INC)

filer.o : filer.c $(INC)

filercb.o : filercb.c $(INC)

asdfiler.o : asdfiler.c $(INC)

gtdfiler.o : gtdfiler.c $(INC)

synfiler.o : synfiler.c $(INC)

getfiler.o : getfiler.c $(INC)

sndfiler.o : sndfiler.c $(INC)

delfiler.o : delfiler.c $(INC)

mkdfiler.o : mkdfiler.c $(INC)

rmdfiler.o : rmdfiler.c $(INC)

install:
	for i in $(BINS); do \
		install -m 755 $$i $(DESTDIR)/usr/bin; \
		install -m 644 lxany.xxx $(DESTDIR)/usr/man/man1/$$i.1; \
	done