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

« back to all changes in this revision

Viewing changes to drivers/gendb

  • 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:
1
1
#! /bin/sh
2
2
#
3
 
# Network UPS Tools: models/gendb
 
3
# Network UPS Tools: drivers/gendb
4
4
#
5
5
# This is a hack to create a bunch of identical rules for building
6
6
# the drivers without relying on either the % patterns of GNU Make or the
13
13
rm -f $MFDB
14
14
 
15
15
cat > $MFDB << EOF
16
 
# Network UPS Tools: models/$MFDB
 
16
# Network UPS Tools: drivers/$MFDB
17
17
#
18
18
# WARNING: This file is generated by the gendb script.  Any changes
19
19
#          to this file will be erased the next time it runs!
28
28
                isbmex)
29
29
                        EXTRA="-lm"
30
30
                        ;;
 
31
                tripplite)
 
32
                        EXTRA="-lm"
 
33
                        ;;
 
34
                upscode2)
 
35
                        EXTRA="-lm"
 
36
                        ;;
31
37
                *)
32
38
                        EXTRA=""
33
39
        esac    
34
40
 
35
 
        echo "$i: $i.o main.o upscommon.o dstate.o ../common/state.o ../include/shared.h ../include/shared-tables.h ../common/upsconf.o ../common/parseconf.o \$(LIBDEP)" >> $MFDB
36
 
        echo "  \$(CC) \$(CFLAGS) -o $i $i.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o \$(LIBOBJ) \$(STRLCPY) $EXTRA" >> $MFDB
 
41
        echo "$i: $i.o main.o serial.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o \$(LIBDEP)" >> $MFDB
 
42
        echo "  \$(CC) \$(CFLAGS) -o $i $i.o main.o serial.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o \$(LIBOBJ) $EXTRA" >> $MFDB
37
43
done