#############################################################################
# Makefile for building: dbf
# Generated by qmake (2.01a) (Qt 4.7.4) on: mar 14. mar 21:13:10 2017
# Project:  dbf.pro
# Template: app
#############################################################################

####### Compiler, tools and options

CC            = gcc
CXX           = g++
DEFINES       = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT
CFLAGS        = -g -w $(DEFINES)
CXXFLAGS      = -g -w -frtti -fexceptions -mthreads $(DEFINES)
INCPATH       = -I"c:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\QtSDK\Desktop\Qt\4.7.4\mingw\include" -I"c:\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"debug" -I"c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++"
LINK        =        g++
LFLAGS        =        -Wl,-subsystem,console -mthreads
LIBS        =        -L"c:\QtSDK\Desktop\Qt\4.7.4\mingw\lib" debug\dbf_res.o -lQtGuid4 -lQtCored4 
QMAKE         = c:\qtsdk\desktop\qt\4.7.4\mingw\bin\qmake.exe
IDC           = c:\QtSDK\Desktop\Qt\4.7.4\mingw\bin\idc.exe
IDL           = midl
ZIP           = zip -r -9
DEF_FILE      = 
RES_FILE      = debug\dbf_res.o
COPY          = copy /y
COPY_FILE     = $(COPY)
COPY_DIR      = xcopy /s /q /y /i
DEL_FILE      = del
DEL_DIR       = rmdir
MOVE          = move
CHK_DIR_EXISTS= if not exist
MKDIR         = mkdir
INSTALL_FILE    = $(COPY_FILE)
INSTALL_PROGRAM = $(COPY_FILE)
INSTALL_DIR     = $(COPY_DIR)

####### Output directory

OBJECTS_DIR   = debug

####### Files

SOURCES       = an_string.c \
		csv.c \
		statistic.c \
		congraph.c \
		iodbf.c \
		sql.c \
		codepages.c \
		dbf.c \
		endian.c 
OBJECTS       = debug/an_string.o \
		debug/csv.o \
		debug/statistic.o \
		debug/congraph.o \
		debug/iodbf.o \
		debug/sql.o \
		debug/codepages.o \
		debug/dbf.o \
		debug/endian.o
DIST          = 
QMAKE_TARGET  = dbf
DESTDIR        = \bin\ #avoid trailing-slash linebreak
TARGET         = dbf.exe
DESTDIR_TARGET = \bin\dbf.exe

####### Implicit rules

.SUFFIXES: .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:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules

first: all
all: Makefile.Debug  $(DESTDIR_TARGET)

$(DESTDIR_TARGET):  $(OBJECTS) debug/dbf_res.o
	$(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) $(OBJECTS)  $(LIBS)

debug/dbf_res.o: dbf.rc
	windres -i dbf.rc -o debug\dbf_res.o --include-dir=. $(DEFINES)

qmake:  FORCE
	@$(QMAKE) -spec c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++ -o Makefile.Debug dbf.pro

dist:
	$(ZIP) dbf.zip $(SOURCES) $(DIST) ..\..\user.pro c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\qconfig.pri c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\modules\qt_webkit_version.pri c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\qt_functions.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\qt_config.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\exclusive_builds.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\default_pre.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\win32\default_pre.prf ..\..\settings.pro c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\debug.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\debug_and_release.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\default_post.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\win32\default_post.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\build_pass.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\win32\console.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\warn_off.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\win32\rtti.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\win32\exceptions.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\win32\stl.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\shared.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\qt.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\win32\thread.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\moc.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\resources.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\uic.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\yacc.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\lex.prf c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\features\include_source_dir.prf  HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES 

clean: compiler_clean 
	-$(DEL_FILE) debug\an_string.o debug\csv.o debug\statistic.o debug\congraph.o debug\iodbf.o debug\sql.o debug\codepages.o debug\dbf.o debug\endian.o
	-$(DEL_FILE) debug\dbf_res.o

distclean: clean
	-$(DEL_FILE) $(DESTDIR_TARGET)
	-$(DEL_FILE) Makefile.Debug

check: first

mocclean: compiler_moc_header_clean compiler_moc_source_clean

mocables: compiler_moc_header_make_all compiler_moc_source_make_all

compiler_moc_header_make_all:
compiler_moc_header_clean:
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all: qmake_image_collection.cpp
compiler_image_collection_clean:
	-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all:
compiler_uic_clean:
compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: 



####### Compile

debug/an_string.o: an_string.c an_string.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o debug\an_string.o an_string.c

debug/csv.o: csv.c csv.h \
		tables.h \
		an_string.h \
		dbf.h \
		codepages.h \
		iodbf.h \
		statistic.h \
		congraph.h \
		endian.h \
		sql.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o debug\csv.o csv.c

debug/statistic.o: statistic.c statistic.h \
		tables.h \
		congraph.h \
		endian.h \
		dbf.h \
		codepages.h \
		iodbf.h \
		an_string.h \
		csv.h \
		sql.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o debug\statistic.o statistic.c

debug/congraph.o: congraph.c congraph.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o debug\congraph.o congraph.c

debug/iodbf.o: iodbf.c iodbf.h \
		dbf.h \
		codepages.h \
		an_string.h \
		statistic.h \
		tables.h \
		congraph.h \
		endian.h \
		csv.h \
		sql.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o debug\iodbf.o iodbf.c

debug/sql.o: sql.c sql.h \
		an_string.h \
		tables.h \
		dbf.h \
		codepages.h \
		iodbf.h \
		statistic.h \
		congraph.h \
		endian.h \
		csv.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o debug\sql.o sql.c

debug/codepages.o: codepages.c codepages.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o debug\codepages.o codepages.c

debug/dbf.o: dbf.c dbf.h \
		codepages.h \
		iodbf.h \
		an_string.h \
		statistic.h \
		tables.h \
		congraph.h \
		endian.h \
		csv.h \
		sql.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o debug\dbf.o dbf.c

debug/endian.o: endian.c endian.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o debug\endian.o endian.c

####### Install

install:   FORCE

uninstall:   FORCE

FORCE:

