home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-10-01 | 1.8 KB | 48 lines |
- # Commands to execute before making any target
- # Set environment variables for compiler
- .BEFORE
- @set inc386=f:\prog\nwcnlms\h
- @set wcg386=f:\prog\nwcnlms\bin\386wcgl.exe
-
- #################################################################
- # Macro definitions
- NLMNAME = hellou
- DESCRIPTION = Hello Universe (network hello)
- VERSION = 0.10
- COPYRIGHT = (c) Copyright 1991, Novell, Inc.
- SCREENNAME = Hello Universe
- CLIBIMP = f:\prog\nwcnlms\imp\clib.imp
- OBJFILE = $NLMNAME.obj
- PRELUDE = f:\prog\nwcnlms\imp\prelude.obj
- COMPILE = wcc386p /zq /d2 /3s
- LINK = wlink
- #################################################################
-
- # All .obj files implicitly depend on .c files
- .c.obj:
- @echo Compiling $[*.c
- @$COMPILE $[*.c
-
- # If .obj or .lnk files are modified, link new .nlm
- $NLMNAME.nlm : $OBJFILE $NLMNAME.lnk
- @$LINK @$NLMNAME
-
- # If makefile is modified, create new linker option file
- $NLMNAME.lnk : makefile
- @echo FORMAT NOVELL NLM '$DESCRIPTION' >$NLMNAME.lnk
- @echo OPTION THREADNAME '$NLMNAME' >>$NLMNAME.lnk
- @echo DEBUG ALL >>$NLMNAME.lnk
- @echo FILE $OBJFILE >>$NLMNAME.lnk
- @echo FILE $PRELUDE >>$NLMNAME.lnk
- @echo OPTION MAP >>$NLMNAME.lnk
- @echo OPTION VERSION=$VERSION >>$NLMNAME.lnk
- @echo OPTION COPYRIGHT '$COPYRIGHT' >>$NLMNAME.lnk
- @echo NAME $NLMNAME >>$NLMNAME.lnk
- @echo MODULE clib >>$NLMNAME.lnk
- @echo OPTION SCREENNAME '$SCREENNAME' >>$NLMNAME.lnk
- @echo IMPORT @$CLIBIMP >>$NLMNAME.lnk
-
- # If .c file is modified, compile new .obj
- $NLMNAME.obj : $NLMNAME.c
-