home *** CD-ROM | disk | FTP | other *** search
- #****************************************************************************
- # Dot directive definition area (usually just suffixes)
- #****************************************************************************
-
- .SUFFIXES: .c .obj .dll .csc .sc .h .ih .ph .psc .rc .res
-
- #****************************************************************************
- # Environment Setup for the component(s).
- #****************************************************************************
-
- SOMTEMP = .\somtemp
- SCPATH = D:\toolkt20\sc
- HPATH = D:\toolkt20\c\os2h
- LIBPATH = D:\toolkt20\os2lib
-
- !if [set SMINCLUDE=.;$(SCPATH);] || \
- [set SMTMP=$(SOMTEMP)] || \
- [set SMEMIT=ih;h;ph;psc;sc;c;def]
- !endif
-
- !if [cd $(SOMTEMP)]
- ! if [md $(SOMTEMP)]
- ! error Error creating $(SOMTEMP) directory
- ! endif
- !else
- ! if [cd ..]
- ! error Error could not cd .. from $(SOMTEMP) directory
- ! endif
- !endif
-
- #
- # Compiler/tools Macros
- #
-
- CC = icc /c /Ge- /Gd- /Se /Re /ss /Ms /Gm+
- LINK = link386
- LDFLAGS = /noi /map /nol /nod /exepack /packcode /packdata /align:16
- LIBS = som.lib os2386.lib DDE4NBS.lib
- #****************************************************************************
- # Set up Macros that will contain all the different dependencies for the
- # executables and dlls etc. that are generated.
- #****************************************************************************
-
- OBJS = wastebsk.obj
-
- #****************************************************************************
- # Setup the inference rules for compiling source code to
- # object code.
- #****************************************************************************
-
- .c.obj:
- $(CC) -I$(HPATH) -c $<
-
- .csc.c:
- sc $<
-
- all: wastebsk.dll
-
- wastebsk.obj: $*.c $*.ih $*.h $*.sc
-
- wastebsk.dll: $(OBJS) wastebsk.res
- $(LINK) $(LDFLAGS) $(OBJS),$@,,$(LIBS),$*;
- rc $*.res $*.dll
- mapsym wastebsk.map
-
- wastebsk.res: wastebsk.rc
- rc -r $*.rc $*.res
-