home *** CD-ROM | disk | FTP | other *** search
- #*******************************************************************************
- #* SAMPLE PROGRAM 04: MAKEFILE *
- #* *
- #* COPYRIGHT: *
- #* ---------- *
- #* Copyright (C) International Business Machines Corp., 1991,1992. *
- #* *
- #* DISCLAIMER OF WARRANTIES: *
- #* ------------------------- *
- #* The following [enclosed] code is sample code created by IBM *
- #* Corporation. This sample code is not part of any standard IBM product *
- #* and is provided to you solely for the purpose of assisting you in the *
- #* development of your applications. The code is provided "AS IS", *
- #* without warranty of any kind. IBM shall not be liable for any damages *
- #* arising out of your use of the sample code, even if they have been *
- #* advised of the possibility of such damages. *
- #* *
- #*******************************************************************************
-
- !if "$(LIBRARY)" == "DYNAMIC"
- LIBFLAG=-Gd
- !else
- LIBFLAG=-Gd-
- !endif
-
- all: samp04a.lib main04.exe
-
-
- # Use IMPLIB to build an import library of functions which will be bound at
- # load-time.
-
- samp04a.lib: samp04a.def
- implib /nologo samp04a.lib samp04a.def
-
-
- # Build main04.exe.
-
- main04.exe: main04.obj main04.def
- link386 /nologo /noi /pm:vio main04,main04,nul,samp04a,main04
-
- main04.obj: main04.c sample04.h
- icc -c -Q $(LIBFLAG) main04.c
-