-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
92 lines (70 loc) · 1.61 KB
/
Makefile.in
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#
# Copyright (C) Cyclades Corporation, 1999-1999. All rights reserved.
#
OFLAGS=@OFLAGS@
CC=@CC@
#
# Debug and additional options
#
#DFLAGS=-DTSR_MEASURE
DFLAGS=
#
# Compiler flags
#
CCFLAGS=@CCFLAGS@
#
# cyclades-ser-cli program flags
#
SOCKFLAGS=$(OFLAGS) $(DFLAGS) $(CCFLAGS)
#
# Link-editor flags
#
LDFLAGS=-s @LDFLAGS@
#
# Standard libraries
#
LDLIBS=@LIBS@
AUXLIBS=@AUXLIBS@
#
# Object files
#
SOCKOBJS=cyclades-ser-cli.o tsrio.o telnet.o sock.o @DEV_OBJ@ misc.o system.o measure.o
#
# Programs for terminal server interface
#
PROGS=cyclades-ser-cli
all: $(PROGS) libcsc/libcyclades-ser-cli.so
clean:
rm -f $(PROGS) *.o depends.bak
( cd libcsc ; $(MAKE) clean )
libcsc/libcyclades-ser-cli.so:
( cd libcsc ; $(MAKE) )
distclean: clean
rm -f config.status
rm -f libcsc/Makefile
rm -f inc/misc.h
rm -f inc/conf.h.in~
rm -f inc/conf.h.in
rm -f inc/conf.h
rm -f configure
rm -f config.log
rm -f Makefile
rm -f autom4te.cache/*
rmdir autom4te.cache
cyclades-ser-cli: $(SOCKOBJS)
$(CC) $(LDFLAGS) -o cyclades-ser-cli $(SOCKOBJS) $(AUXLIBS) $(LDLIBS)
install: cyclades-ser-cli libcsc/libcyclades-ser-cli.so
mkdir -p $(prefix)/usr/lib $(prefix)/usr/sbin $(prefix)/etc
cp cyclades-serial-client cyclades-ser-cli $(prefix)/usr/sbin
cp libcsc/libcyclades-ser-cli.so $(prefix)/usr/lib
cp -i cyclades-devices $(prefix)/etc
mkdir -p $(prefix)/usr/share/man/man5
mkdir -p $(prefix)/usr/share/man/man8
cp man/*.5 $(prefix)/usr/share/man/man5
cp man/*.8 $(prefix)/usr/share/man/man8
%.o: %.c
$(CC) $(SOCKFLAGS) -c $<
dep:
-makedepend -Y -f depends *.c 2> /dev/null
( cd libcsc ; $(MAKE) dep )
include depends