|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /usr/local/src/apcupsd-3.14.10/autoconf/ |
Upload File : |
# General rules for Makefile(s) subsystem.
# In this file we will put everything that need to be
# shared betweek all the Makefile(s).
# This file must be included at the beginning of every Makefile
#
# Copyright (C) 1999-2002 Riccardo Facchetti <riccardo@master.oasi.gpa.it>
#
# package version
PACKAGE = apcupsd
DISTNAME = redhat
DISTVER = (Bordeaux)
VERSION = 3.14.10
#
# programs needed by compilation
CP = /bin/cp
MV = /bin/mv
ECHO = /bin/echo
RM = /bin/rm
RMF = $(RM) -rf
LN = /bin/ln
SED = /bin/sed
MAKE = make
SHELL = /bin/sh
RANLIB = /usr/bin/ranlib
AR = /usr/bin/ar
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL}
MKINSTALLDIRS = /usr/local/src/apcupsd-3.14.10/autoconf/mkinstalldirs
CHKCONFIG = /sbin/chkconfig
RST2HTML :=
RST2PDF :=
# Files and directories (paths)
prefix = /usr
exec_prefix = ${prefix}
sysconfdir = /etc/apcupsd
cgibin = /etc/apcupsd
VPATH = /usr/lib:/usr/local/lib
srcdir = .
abstopdir = /usr/local/src/apcupsd-3.14.10
sbindir = /sbin
piddir = /var/run
mandir=/usr/share/man
bindir = ${exec_prefix}/bin
datadir = ${prefix}/share
HALPOLICYDIR = /usr/share/hal/fdi/policy/20thirdparty
DISTDIR = redhat
PWRFAILDIR = /etc/apcupsd
LOCKDIR = /var/lock
# Compilation macros.
CC = gcc
CXX = g++
OBJC = $(CC) -x objective-c++
NIB = ibtool
LD = gcc
DEFS = $(LOCALDEFS)
# Libraries
APCLIBS = $(topdir)/src/lib/libapc.a
APCDRVLIBS = $(topdir)/src/drivers/libdrivers.a
DRVLIBS = -lpthread
X_LIBS =
X_EXTRA_LIBS =
CPPFLAGS = -I/usr/local/include -I$(topdir)/include $(EXTRAINCS)
CFLAGS = $(CPPFLAGS) -g -O2 -Wall
CXXFLAGS = $(CPPFLAGS) -g -O2 -fno-exceptions -fno-rtti -Wall
OBJCFLAGS = $(CPPFLAGS) $(CFLAGS)
LDFLAGS = -L/usr/local/lib64 -L/usr/local/lib
LIBS = -lsupc++
LIBGD =
POWERLIBS =
GAPCMON_CFLAGS = -DHAVE_FUNC_GETHOSTBYNAME_R_6
GAPCMON_LIBS =
LIBEXTRAOBJ =
RST2HTMLOPTS = --field-name-limit=0 --generator --time --no-footnote-backlinks --record-dependencies=$(df).d
RST2PDFOPTS = --no-footnote-backlinks --real-footnotes
NIBFLAGS =
# Driver and package enable flags
SMARTDRV := apcsmart
DUMBDRV := dumb
USBDRV :=
NETDRV := net
PCNETDRV := pcnet
SNMPDRV :=
SNMPLTDRV := snmplite
TESTDRV :=
USBTYPE :=
CGIDIR :=
USBHIDDIR :=
GAPCMON :=
APCAGENT :=
OBJDIR = .obj
DEPDIR = .deps
df = $(DEPDIR)/$(*F)
DEVNULL := >/dev/null 2>&1