#==============================================================================
# Makefile for OS/2
# (c) 1997 by Dirk Ohme
#==============================================================================

include Version.mk

all:
        cd DOC
        @$(MAKE) /nologo all
        cd ..
        cd DRIVER
        @$(MAKE) /nologo all
        cd ..
        cd iODBC-2.12
        @$(MAKE) /nologo all
        cd ..
        cd SAMPLES
        @$(MAKE) /nologo all
        cd ..
        cd JAVA
        @$(MAKE) /nologo all
        cd ..
        cd OS2_TOOL\MK_SYSLEVEL
        @$(MAKE) /nologo all
        cd ..\..

clean:
        cd DOC
        @$(MAKE) /nologo clean
        cd ..
        cd DRIVER
        @$(MAKE) /nologo clean
        cd ..
        cd iODBC-2.12
        @$(MAKE) /nologo clean
        cd ..
        cd SAMPLES
        @$(MAKE) /nologo clean
        cd ..
        cd JAVA
        @$(MAKE) /nologo clean
        cd ..
        cd OS2_TOOL\MK_SYSLEVEL
        @$(MAKE) /nologo clean
        cd ..\..

delete:
        cd DOC
        @$(MAKE) /nologo delete
        cd ..
        cd DRIVER
        @$(MAKE) /nologo delete
        cd ..
        cd iODBC-2.12
        @$(MAKE) /nologo delete
        cd ..
        cd SAMPLES
        @$(MAKE) /nologo delete
        cd ..
        cd JAVA
        @$(MAKE) /nologo delete
        cd ..
        cd OS2_TOOL\MK_SYSLEVEL
        @$(MAKE) /nologo delete
        cd ..\..

delete_all:
        cd DOC
        @$(MAKE) /nologo delete_all
        cd ..
        cd DRIVER
        @$(MAKE) /nologo delete_all
        cd ..
        cd iODBC-2.12
        @$(MAKE) /nologo delete_all
        cd ..
        cd SAMPLES
        @$(MAKE) /nologo delete_all
        cd ..
        cd JAVA
        @$(MAKE) /nologo delete_all
        cd ..
        cd OS2_TOOL\MK_SYSLEVEL
        @$(MAKE) /nologo delete_all
        cd ..\..

inst:
install:
        @inst_os2

auto_conf: conf
auto-conf: conf
config: conf
conf:
        @autoconf

dist:   delete
        if exist iODBC-*.zip del iODBC-*.zip
        cd ..
        -ren iODBC\LIB\iODBC.ini iODBC.bak
        zip -r9 iODBC-$(VERSION)$(EXTVER).zip iODBC
        -ren iODBC\LIB\iODBC.bak iODBC.ini
        cd iODBC
        move ..\iODBC-*.zip .

bin-dist: delete
        if exist iODBC-bin-*.zip del iODBC-bin-*.zip
        cd ..
        -ren iODBC\LIB\iODBC.ini iODBC.bak
        zip -r9 iODBC-bin-$(VERSION)$(EXTVER).zip iODBC\DOC\IMAGES\
 iODBC\DOC\*.htm iODBC\DOC\*.ico iODBC\DOC\*.inf iODBC\INCLUDE\
 iODBC\JAVA\class\iODBC.zip iODBC\JAVA\demo iODBC\JAVA\doc iODBC\LIB\
 iODBC\SAMPLES iODBC\autoconf* iODBC\inst_os2.cmd iODBC\syslevel.*\
 iODBC\*.txt
        -ren iODBC\LIB\iODBC.bak iODBC.ini
        cd iODBC
        move ..\iODBC-*.zip .

#===| end of file |============================================================
