#****************************************************************************************#
#*                                                                                      *#
#* COPYRIGHT    Copyright (C) 2023 Lars Erdmann                                         *#
#*                                                                                      *#
#* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. *#
#* If a copy of the MPL was not distributed with this file,                             *#
#* You can obtain one at https://mozilla.org/MPL/2.0/.                                  *#
#*                                                                                      *#
#* This Source Code Form is "Incompatible With Secondary Licenses",                     *#
#* as defined by the Mozilla Public License, v. 2.0.                                    *#
#*                                                                                      *#
#****************************************************************************************#

.SUFFIXES:
.SUFFIXES:.obj .cpp .xh .idl .rc .res

OBJS = assoccls.obj
LIBS = somtk.lib
DEF  = assoccls.def
LFLAGS = /NOL /NOBASE /E:2 /MAP
CFLAGS = -Q+ -Ge- -Gd+ -Gm+ -C+

!IFDEF DEBUG
LFLAGS = $(LFLAGS) /DE /DB
CFLAGS = $(CFLAGS) -Ti
!ENDIF

assoccls.dll: $(OBJS) $(DEF) assoccls.res
	ilink.500 $(LFLAGS) /O:$@ $(OBJS) $(DEF) $(LIBS)
   rc.exe -x2 $*.res $@
	dllrname.exe $@ CPPOM30=OS2OM30 /n /q
   emxupd.exe $@ $(OS2_SHELL:CMD.EXE=DLL)

.cpp.obj:
	icc.exe $(CFLAGS) $<

.rc.res:
    rc.exe -n -r $<

.idl.cpp:
    sc.exe -s"xc;xih;xh" $<

.idl.xh:
    sc.exe -s"xh" $<

assoccls.cpp: cam.xh
