File:  [OS/2 SDKs] / os232sdk / toolkt20 / c / samples / style / style.mak
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:26:30 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: os2sdk-1990, HEAD
Microsoft OS/2 SDK 2.0 05-30-1990

#===================================================================
#
#   Sample Make file
#   Created 1990 Microsoft, IBM Corporation
#
#===================================================================

.SUFFIXES: .res .rc .ipf .hlp

ASM = masm
AFLAGS =
AXFLAGS =
CC = cl386
CFLAGS16 = -u -c -Gs -Od -W3 -Zpei -AL -DLINT_ARGS
CFLAGS32 = -c -Gs -Od -W3 -Zi -B1 c1l_386 -DLINT_ARGS
CINC32 = 
CINC16 = -X -I\sdk12\inc -I\sdk12\inc\sys -I..\..\inc
DFLAGS =
LINK16 = link
LIBS16 = os2 llibcep
LINK32 = link386
LIBS32 = os2386 libc
LFLAGS = /MAP/CO/NOD
RC = ..\..\..\os2bin\rc
HEADERS = sty_main.h sty_xtrn.h

LINK = $(LINK32)
CFLAGS = $(CFLAGS32)
LIBS = $(LIBS32)
CINC = $(CINC32)
#===================================================================
#
#   Default inference rules
#
#===================================================================
.c.obj:
    $(CC) $(CFLAGS) $(CINC) $*.c

.asm.obj:
    $(ASM) $(AFLAGS) $(AXFLAGS) $*.asm;

.rc.res:
    $(RC) -r $*.rc

#===================================================================
#
#   A list of all of the object files
#
#===================================================================
ALL_OBJ1 = sty_main.obj sty_user.obj sty_init.obj sty_pnt.obj sty_dlg.obj
ALL_OBJ2 = sty_file.obj sty_edit.obj sty_help.obj sty_prnt.obj

#===================================================================
#
#   A list of all of the Help files
#
#===================================================================
ALL_IPF = sty_main.ipf sty_file.ipf sty_edit.ipf sty_help.ipf sty_menu.ipf \
          sty_dlg.ipf

#===================================================================
#
#   Dependencies
#
#===================================================================

all: style.exe style.hlp

style.lnk: style.mak
    echo $(ALL_OBJ1) +         > style.lnk
    echo $(ALL_OBJ2)          >> style.lnk
    echo style.exe            >> style.lnk
    echo style.map $(LFLAGS)  >> style.lnk
    echo $(LIBS)              >> style.lnk
    echo style.def            >> style.lnk

sty_main.res: sty_main.rc sty_main.h sty_dlg.h style.dlg # sty_help.rc sty_help.h

sty_main.obj: sty_main.c $(HEADERS)

sty_file.obj: sty_file.c $(HEADERS)

sty_edit.obj: sty_edit.c $(HEADERS)

sty_user.obj: sty_user.c $(HEADERS)

sty_init.obj: sty_init.c $(HEADERS)

sty_pnt.obj: sty_pnt.c $(HEADERS)

sty_dlg.obj: sty_dlg.c $(HEADERS)

sty_help.obj: sty_help.c $(HEADERS) sty_help.h

sty_prnt.obj: sty_prnt.c $(HEADERS)


#=============== help file generation ====================#
style.hlp: $(ALL_IPF)
    ipfc sty_main.ipf /W3
    if exist style.hlp del style.hlp
    rename sty_main.hlp style.hlp

style.exe: $(ALL_OBJ1) $(ALL_OBJ2) style.def style.lnk sty_main.res
    $(LINK) @style.lnk
    $(RC) sty_main.res style.exe

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.