#############################################################################
# Makefile for building: wpa_gui
# Generated by qmake (1.07a) (Qt 3.3.3) on: Fri Jul 14 17:33:15 2006
# Project:  wpa_gui.pro
# Template: app
# Command: $(QMAKE) -o Makefile wpa_gui.pro
#############################################################################

####### Compiler, tools and options

CC       = gcc
CXX      = g++
LEX      = flex
YACC     = yacc
CFLAGS   = -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4  -DQT_NO_DEBUG
CXXFLAGS = -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4  -DQT_NO_DEBUG
LEXFLAGS = 
YACCFLAGS= -d
INCPATH  = -I/usr/lib/qt-3.3/mkspecs/default -I. -I.. -I$(QTDIR)/include -I.ui/ -I. -I.moc/
LINK     = g++
LFLAGS   = 
LIBS     = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib /tmp/libqt.a -lXext -lX11 -lm
AR       = ar cqs
RANLIB   = 
MOC      = $(QTDIR)/bin/moc
UIC      = $(QTDIR)/bin/uic
QMAKE    = qmake
TAR      = tar -cf
GZIP     = gzip -9f
COPY     = cp -f
COPY_FILE= $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK  = ln -sf
DEL_DIR  = rmdir
MOVE     = mv -f
CHK_DIR_EXISTS= test -d
MKDIR    = mkdir -p

####### Output directory

OBJECTS_DIR = .obj/

####### Files

HEADERS = wpamsg.h
SOURCES = main.cpp \
		../wpa_ctrl.c
OBJECTS = .obj/main.o \
		.obj/wpa_ctrl.o \
		.obj/wpagui.o \
		.obj/eventhistory.o \
		.obj/scanresults.o \
		.obj/userdatarequest.o \
		.obj/networkconfig.o
FORMS = wpagui.ui \
		eventhistory.ui \
		scanresults.ui \
		userdatarequest.ui \
		networkconfig.ui
UICDECLS = .ui/wpagui.h \
		.ui/eventhistory.h \
		.ui/scanresults.h \
		.ui/userdatarequest.h \
		.ui/networkconfig.h
UICIMPLS = .ui/wpagui.cpp \
		.ui/eventhistory.cpp \
		.ui/scanresults.cpp \
		.ui/userdatarequest.cpp \
		.ui/networkconfig.cpp
SRCMOC   = .moc/moc_wpagui.cpp \
		.moc/moc_eventhistory.cpp \
		.moc/moc_scanresults.cpp \
		.moc/moc_userdatarequest.cpp \
		.moc/moc_networkconfig.cpp
OBJMOC = .obj/moc_wpagui.o \
		.obj/moc_eventhistory.o \
		.obj/moc_scanresults.o \
		.obj/moc_userdatarequest.o \
		.obj/moc_networkconfig.o
DIST	   = wpa_gui.pro
QMAKE_TARGET = wpa_gui
DESTDIR  = 
TARGET   = wpa_gui

first: all
####### Implicit rules

.SUFFIXES: .c .o .cpp .cc .cxx .C

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

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.C.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules

all: Makefile $(TARGET)

$(TARGET):  $(UICDECLS) $(OBJECTS) $(OBJMOC)  
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS)

mocables: $(SRCMOC)
uicables: $(UICDECLS) $(UICIMPLS)

$(MOC): 
	( cd $(QTDIR)/src/moc && $(MAKE) )

Makefile: wpa_gui.pro  /usr/lib/qt-3.3/mkspecs/default/qmake.conf 
	$(QMAKE) -o Makefile wpa_gui.pro
qmake: 
	@$(QMAKE) -o Makefile wpa_gui.pro

dist: 
	@mkdir -p .obj/wpa_gui && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/wpa_gui/ && $(COPY_FILE) --parents wpagui.ui.h eventhistory.ui.h scanresults.ui.h userdatarequest.ui.h networkconfig.ui.h .obj/wpa_gui/ && ( cd `dirname .obj/wpa_gui` && $(TAR) wpa_gui.tar wpa_gui && $(GZIP) wpa_gui.tar ) && $(MOVE) `dirname .obj/wpa_gui`/wpa_gui.tar.gz . && $(DEL_FILE) -r .obj/wpa_gui

mocclean:
	-$(DEL_FILE) $(OBJMOC)
	-$(DEL_FILE) $(SRCMOC)

uiclean:
	-$(DEL_FILE) $(UICIMPLS) $(UICDECLS)

yaccclean:
lexclean:
clean: mocclean uiclean
	-$(DEL_FILE) $(OBJECTS)
	-$(DEL_FILE) *~ core *.core


####### Sub-libraries

distclean: clean
	-$(DEL_FILE) $(TARGET) $(TARGET)


FORCE:

####### Compile

.obj/main.o: main.cpp .ui/wpagui.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/main.o main.cpp

.obj/wpa_ctrl.o: ../wpa_ctrl.c ../wpa_ctrl.h \
		../common.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o .obj/wpa_ctrl.o ../wpa_ctrl.c

.ui/wpagui.h: wpagui.ui wpamsg.h \
		.ui/eventhistory.h \
		.ui/scanresults.h
	$(UIC) wpagui.ui -o .ui/wpagui.h

.ui/wpagui.cpp: .ui/wpagui.h wpagui.ui wpamsg.h \
		.ui/eventhistory.h \
		.ui/scanresults.h
	$(UIC) wpagui.ui -i wpagui.h -o .ui/wpagui.cpp

.ui/eventhistory.h: eventhistory.ui wpamsg.h
	$(UIC) eventhistory.ui -o .ui/eventhistory.h

.ui/eventhistory.cpp: .ui/eventhistory.h eventhistory.ui wpamsg.h
	$(UIC) eventhistory.ui -i eventhistory.h -o .ui/eventhistory.cpp

.ui/scanresults.h: scanresults.ui 
	$(UIC) scanresults.ui -o .ui/scanresults.h

.ui/scanresults.cpp: .ui/scanresults.h scanresults.ui 
	$(UIC) scanresults.ui -i scanresults.h -o .ui/scanresults.cpp

.ui/userdatarequest.h: userdatarequest.ui 
	$(UIC) userdatarequest.ui -o .ui/userdatarequest.h

.ui/userdatarequest.cpp: .ui/userdatarequest.h userdatarequest.ui 
	$(UIC) userdatarequest.ui -i userdatarequest.h -o .ui/userdatarequest.cpp

.ui/networkconfig.h: networkconfig.ui 
	$(UIC) networkconfig.ui -o .ui/networkconfig.h

.ui/networkconfig.cpp: .ui/networkconfig.h networkconfig.ui 
	$(UIC) networkconfig.ui -i networkconfig.h -o .ui/networkconfig.cpp

.obj/wpagui.o: .ui/wpagui.cpp .ui/userdatarequest.h \
		.ui/networkconfig.h \
		wpagui.ui.h \
		.ui/wpagui.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/wpagui.o .ui/wpagui.cpp

.obj/eventhistory.o: .ui/eventhistory.cpp eventhistory.ui.h \
		.ui/eventhistory.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/eventhistory.o .ui/eventhistory.cpp

.obj/scanresults.o: .ui/scanresults.cpp .ui/wpagui.h \
		.ui/networkconfig.h \
		scanresults.ui.h \
		.ui/scanresults.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/scanresults.o .ui/scanresults.cpp

.obj/userdatarequest.o: .ui/userdatarequest.cpp .ui/wpagui.h \
		userdatarequest.ui.h \
		.ui/userdatarequest.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/userdatarequest.o .ui/userdatarequest.cpp

.obj/networkconfig.o: .ui/networkconfig.cpp .ui/wpagui.h \
		networkconfig.ui.h \
		.ui/networkconfig.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/networkconfig.o .ui/networkconfig.cpp

.obj/moc_wpagui.o: .moc/moc_wpagui.cpp  .ui/wpagui.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_wpagui.o .moc/moc_wpagui.cpp

.obj/moc_eventhistory.o: .moc/moc_eventhistory.cpp  .ui/eventhistory.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_eventhistory.o .moc/moc_eventhistory.cpp

.obj/moc_scanresults.o: .moc/moc_scanresults.cpp  .ui/scanresults.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_scanresults.o .moc/moc_scanresults.cpp

.obj/moc_userdatarequest.o: .moc/moc_userdatarequest.cpp  .ui/userdatarequest.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_userdatarequest.o .moc/moc_userdatarequest.cpp

.obj/moc_networkconfig.o: .moc/moc_networkconfig.cpp  .ui/networkconfig.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_networkconfig.o .moc/moc_networkconfig.cpp

.moc/moc_wpagui.cpp: $(MOC) .ui/wpagui.h
	$(MOC) .ui/wpagui.h -o .moc/moc_wpagui.cpp

.moc/moc_eventhistory.cpp: $(MOC) .ui/eventhistory.h
	$(MOC) .ui/eventhistory.h -o .moc/moc_eventhistory.cpp

.moc/moc_scanresults.cpp: $(MOC) .ui/scanresults.h
	$(MOC) .ui/scanresults.h -o .moc/moc_scanresults.cpp

.moc/moc_userdatarequest.cpp: $(MOC) .ui/userdatarequest.h
	$(MOC) .ui/userdatarequest.h -o .moc/moc_userdatarequest.cpp

.moc/moc_networkconfig.cpp: $(MOC) .ui/networkconfig.h
	$(MOC) .ui/networkconfig.h -o .moc/moc_networkconfig.cpp

####### Install

install:  

uninstall:  

