~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to clients/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2005-07-20 19:48:50 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050720194850-oo61wjr33rrx2mre
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
BINPATH         = $(DESTDIR)@bindir@
9
9
SBINPATH        = $(DESTDIR)@sbindir@
10
10
 
11
 
# for install-misc, at the bottom
 
11
# for install-lib, at the bottom
12
12
LIBDIR          = $(DESTDIR)@libdir@
13
13
INCLUDEDIR      = $(DESTDIR)@includedir@
14
14
 
15
15
# other definitions
 
16
CC       = @CC@
16
17
AR       = @AR@
17
18
RANLIB   = @RANLIB@
18
 
CC       = @CC@
19
19
CFLAGS   = -I../include @CFLAGS@
20
20
PROGS    = upsc upslog upsrw upscmd
21
21
SPROGS   = upsmon upssched
22
22
CGIPROGS = upsstats.cgi upsimage.cgi upsset.cgi
 
23
LDFLAGS  = @LDFLAGS@
23
24
LIBDEP   = @LIBOBJ@
24
25
LIBOBJ   = $(LIBDEP) @NETLIBS@
25
 
STRLCPY  = @STRLCPY@
26
26
 
27
27
SSL_CFLAGS  = @SSL_CFLAGS@
28
28
SSL_LDFLAGS = @SSL_LDFLAGS@
30
30
NET_LDFLAGS = $(LDFLAGS) $(SSL_LDFLAGS)
31
31
GD_INCLUDES = @GD_INCLUDES@
32
32
GD_LIBS     = @GD_LIBS@
33
 
UPSCLI_OBJ  = ../common/parseconf.o upsclient.o
 
33
UPSCLI_OBJ  = @UPSCLI_OBJ@
34
34
 
35
35
INSTALLCMD  = @INSTALL@
36
36
INSTALLMODE = 0755
38
38
all: $(PROGS) $(SPROGS)
39
39
cgi: $(CGIPROGS)
40
40
 
 
41
libupsclient.a: upsclient.o ../common/parseconf.o
 
42
        $(AR) rv libupsclient.a upsclient.o ../common/parseconf.o
 
43
        $(RANLIB) libupsclient.a
 
44
 
41
45
upsclient.o: upsclient.c
42
46
        $(CC) $(NET_CFLAGS) -c upsclient.c
43
47
 
67
71
 
68
72
# other stuff
69
73
 
70
 
upssched: upssched.c ../common/parseconf.o $(LIBDEP) $(STRLCPY)
71
 
        $(CC) $(CFLAGS) -o upssched upssched.c ../common/parseconf.o $(LIBOBJ) $(STRLCPY)
 
74
upssched: upssched.c ../common/parseconf.o $(LIBDEP)
 
75
        $(CC) $(CFLAGS) -o upssched upssched.c ../common/parseconf.o $(LIBOBJ) $(LDFLAGS)
72
76
 
73
77
cgilib.o: cgilib.c
74
78
        $(CC) $(CFLAGS) -c cgilib.c
75
79
 
76
80
clean:
77
 
        rm -f *~ *.o $(PROGS) $(SPROGS) $(CGIPROGS)
 
81
        rm -f *~ *.o *.a $(PROGS) $(SPROGS) $(CGIPROGS) @MISC_UPSCLI_OBJ@
78
82
 
79
83
distclean: clean
80
84
 
91
95
                $(INSTALLCMD) -m $(INSTALLMODE) $$f $(CGIPATH); \
92
96
        done
93
97
 
94
 
# this is only used for install-misc since this is the stable tree
95
 
libupsclient.a: upsclient.o ../common/parseconf.o
96
 
        $(AR) rv libupsclient.a upsclient.o ../common/parseconf.o
97
 
        $(RANLIB) libupsclient.a
98
 
 
99
 
install-misc: @MISC_UPSCLI_OBJ@
 
98
install-lib: libupsclient.a
100
99
        @if (test ! -d $(LIBDIR)) then \
101
100
                ../install-sh -d $(LIBDIR) || exit 1; \
102
101
        fi
104
103
                ../install-sh -d $(INCLUDEDIR) || exit 1; \
105
104
        fi
106
105
        $(INSTALLCMD) -m 0644 upsclient.h $(INCLUDEDIR)
 
106
        $(INSTALLCMD) -m 0644 libupsclient.a $(LIBDIR)
107
107
        $(INSTALLCMD) -m 0644 ../include/parseconf.h $(INCLUDEDIR)
108
 
        @for f in @MISC_UPSCLI_OBJ@ ; do \
109
 
                $(INSTALLCMD) -m 0644 $$f $(LIBDIR); \
110
 
        done