File:  [OS/2 SDKs] / os232sdk / toolkt20 / c / samples / vmm / makefile.12
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 1989 Micorosft Corporation
#
#===================================================================

.SUFFIXES: .res .rc

ASM = masm
AFLAGS =
AXFLAGS =
CC = cl
CFLAGS = -u -c -G2s -Od -W3 -Zpei -AL
CFLAGS32 = -c -G3s -Od -W3 -Zi -B1 c1l_386 -DOS2_API32
DFLAGS =
LINK = link
LIBS = os2 llibcep # printdlg
LFLAGS = /MAP/CO/NOD
RC = rc
HEADERS = sample.h

#===================================================================
#
#   Default inference rules
#
#===================================================================
.c.obj:
    $(CC) $(CFLAGS) $*.c

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

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

#===================================================================
#
#   A list of all of the object files
#
#===================================================================
ALL_OBJ1 = sample.obj usercmd.obj init.obj paint.obj dialog.obj help.obj
ALL_OBJ2 = filecmd.obj # print.obj

#===================================================================
#
#   A list of all of the Help files
#
#===================================================================
ALL_IPF = sample.ipf file.ipf edit.ipf help.ipf dialog.ipf

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

all: sample.exe

sample.lnk: makefile.12
    echo $(ALL_OBJ1) +	      > sample.lnk
    echo $(ALL_OBJ2)	      >>sample.lnk
    echo sample.exe	      >> sample.lnk
    echo sample.map $(LFLAGS) >> sample.lnk
    echo $(LIBS)	      >> sample.lnk
    echo sample.def	      >> sample.lnk

sample.res: sample.rc sample.h sampdlg.h sampdlg.dlg samphelp.rc samphelp.h

sample.obj: sample.c $(HEADERS)

filecmd.obj: filecmd.c $(HEADERS)

editcmd.obj: editcmd.c $(HEADERS)

usercmd.obj: usercmd.c $(HEADERS)

init.obj: init.c $(HEADERS)

paint.obj: paint.c $(HEADERS)

dialog.obj: dialog.c $(HEADERS)

help.obj: help.c $(HEADERS) samphelp.h

# print.obj: print.c $(HEADERS)


#=============== help file generation ====================#
sample.hlp: $(ALL_IPF)
    ipfc sample.ipf /W3

sample.exe: $(ALL_OBJ1) $(ALL_OBJ2) sample.def sample.lnk sample.res sample.hlp
    $(LINK) @sample.lnk
    mapsym sample.map
    rc sample.res

unix.superglobalmegacorp.com

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