# Generated automatically from Makefile.in by configure.
# This is a sample Makefile.in 

# -O2 -Wall     : is set to -g -Wall (when debuging) or -O2 -Wall (when not)
# -I/usr/X11R6/include -I/usr/local/qt/include -I/usr/local/kde/include : is set to all needed include paths for QT, KDE and X11
# -I.. 	         : needed for config.h
CXXFLAGS= -O2 -Wall -I/usr/X11R6/include -I/usr/local/qt/include -I/usr/local/kde/include -DHAVE_CONFIG_H -I..

# -s    : is set to -s (when not debuging) for stripping
# @all_libra.@ : is set to all needed libraries paths for QT, KDE and X11
# you need also , if you link with -lkfm
LDFLAGS	= -s -L/usr/X11R6/lib -L/usr/local/qt/lib -L/usr/local/kde/lib -lqt -lkdecore -lkdeui -lX11 -lXext 

# both are clear, I think
CXX     = c++
MOC   	= /usr/local/qt/bin/moc

############# INSTALL #################

install = /usr/bin/ginstall -c
INSTALL = $(install) -m 0755
INSTALL_DATA = $(install) -m 0644
INSTALL_DIR = $(install) -d -m 0755
INSTALL_DIR_PRIVATE = $(install) -d -m 0700

prefix = /opt/kde
BINDIR = $(prefix)/bin
TOOLPICSDIR = 
ICONDIR = $(prefix)/share/icons
PICSDIR = 
DOCSDIR = 

########### File Formats ###########

.SUFFIXES: .cpp

.cpp.o:
	$(CXX) -c $(CXXFLAGS) $<

%.moc: %.h
	$(MOC) $< -o $@

########## Files #####################

OBJECTS =	kbattery.o klabel.o main.o 
SRCMETA =	kbattery.moc klabel.moc
TARGET	=	kbattery

######### build rules ################

all: Makefile $(TARGET)

Makefile: Makefile.in
	cd .. && ./config.status

$(TARGET): $(SRCMETA) $(OBJECTS)
	$(CXX) $(OBJECTS) -o $(TARGET) $(LDFLAGS)

clean:
	rm -f *.o *.bak *~ *% #*
	rm -f $(SRCMETA) $(TARGET)

distclean: clean
	rm -f Makefile

install:
	$(INSTALL_DIR) $(BINDIR)
	$(INSTALL) $(TARGET) $(BINDIR)
	
uninstall:
	rm -f $(BINDIR)/$(TARGET)
	rm -f $(TOOLPICSDIR)/kfkt.xpm
	rm -f $(TOOLPICSDIR)/ksys1.xpm
	rm -f $(TOOLPICSDIR)/ksys2.xpm
	rm -f $(TOOLPICSDIR)/ksys3.xpm
	
# DO NOT DELETE THIS LINE -- make depend depends on it.


