Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.naic.edu/~phil/hardware/vertex/sharemegsvertex/lcu/pcr/devkit/WINDOWS/SAMPLES/MAKEFILE.BCC
Дата изменения: Thu Jul 29 00:49:06 1993
Дата индексирования: Thu Jan 15 16:29:42 2009
Кодировка:

Поисковые слова: m 44
#
# $Header: J:\devkit.dos\vcs\srcsmpl\samples.win\src\makefile.bcv 1.3 28 Jul 1993 16:49:06 arnoff $
#

# Copyright (C) 1991-1992 by FTP Software, Inc.
#
# This software is furnished under a license and may be used and copied
# only in accordance with the terms of such license and with the
# inclusion of the above copyright notice. This software or any other
# copies thereof may not be provided or otherwise made available to any
# other person. No title to and ownership of the software is hereby
# transferred.
#
# The information in this software is subject to change without notice
# and should not be construed as a commitment by FTP Software, Inc.
#
# File: samples\makefile
# System: PC/TCP for MSWindows 3.x
# Subsystem: PC/TCP Sample Windows Applications
# History:
# 05-Sep-90 msd@ayuda Original author.
# 04-Oct-90 msd@ayuda First pre-release.
# 01-Apr-91 msd@ayuda To FTP for 2.05 pl 2 beta.
# xx-Jun-91 msd@ayuda Begin work on 2.10 version.
# 18-Nov-91 msd@ayuda Added 'tcrubbs' for blocking i/o.
# 06-May-92 ftp DevKit 2.1 beta.
# 17-Jun-92 paul@ftp munged for Borland C++
# 03-Aug-92 paul added install target
# 07-Dec-92 rcq removed crubds
# Summary:
# Makefile for the SAMPLES subtree.

# Environment variables this makefile expects to be set:
# INCLUDE header file directory(s) (for CL)
# LIB library directory(s) (for LINK) -- note:
# you must be using the segmented linker

PCTCP =..\..
INCDIR =$(PCTCP)\include
LIBDIR =$(PCTCP)\netbcc3.0
BINDIR =$(PCTCP)\bin
TROOT =tmp # base name for temp files

LINK = tlink
MAKE = make -f makefile.bcc

CFLAGS = -wOG -Fc -W
LFLAGS = /n /m /Tw

LIBOBJS =cgarf.obj fmters.obj oplaint.obj pplaint.obj

all: techos.exe uecho.exe uechos.exe uechosd.exe uechosdl.dll

install: all
copy *.exe $(BINDIR)
copy *.dll $(BINDIR)


##########################################################################
############################### techos #################################
##########################################################################

# Update the executable file if necessary, and if so, add the resource back in.
techos.exe: techos.obj techos.def techos.res $(LIBDIR)\pctcpapi.lib lib.lib
$(LINK) $(LFLAGS) @&&!
c0ws.obj $*.obj
$@
$*.map
pctcpapi lib import cws
$*.def
!
rc $*.res $*.exe

# Update the resource if necessary
techos.res: techos.rc techos.h
rc -r techos.rc

# Make a symbol file, for debugging
techos.sym: techos.map
mapsym techos.map

techos.obj: techos.c fmters.h plaints.h techos.h $(INCDIR)\pctcp\winapp.h


##########################################################################
################################ uecho #################################
##########################################################################

# Update the executable file if necessary, and if so, add the resource back in.
uecho.exe: uecho.obj uecho.def uecho.res $(LIBDIR)\pctcpapi.lib lib.lib
$(LINK) $(LFLAGS) @&&!
c0ws.obj $*.obj
$@
$*.map
pctcpapi lib import cws
$*.def
!
rc $*.res $*.exe

# Update the resource if necessary
uecho.res: uecho.rc uecho.h
rc -r uecho.rc

# Make a symbol file, for debugging
uecho.sym: uecho.map
mapsym uecho.map

uecho.obj: uecho.c cgarf.h fmters.h plaints.h uecho.h \
$(INCDIR)\pctcp\dns_lib.h $(INCDIR)\pctcp\winapp.h


##########################################################################
################################ uechos ################################
##########################################################################

# Update the executable file if necessary, and if so, add the resource back in.
uechos.exe: uechos.obj uechos.def uechos.res $(LIBDIR)\pctcpapi.lib lib.lib
$(LINK) $(LFLAGS) @&&!
c0ws.obj $*.obj
$@
$*.map
pctcpapi lib import cws
$*.def
!
rc $*.res $*.exe

# Update the resource if necessary
uechos.res: uechos.rc uechos.h
rc -r uechos.rc

# Make a symbol file, for debugging
uechos.sym: uechos.map
mapsym uechos.map

uechos.obj: uechos.c cgarf.h fmters.h plaints.h uechos.h \
$(INCDIR)\pctcp\winapp.h


##########################################################################
############################### uechosd ################################
##########################################################################

# Update the executable file if necessary, and if so, add the resource back in.
uechosd.exe: uechosd.obj uechosd.def uechosd.res dll\uechosdl.lib lib.lib
$(LINK) $(LFLAGS) @&&!
c0ws.obj $*.obj
$@
$*.map
dll\uechosdl lib import cws
$*.def
!
rc $*.res $*.exe

# Update the resource if necessary
uechosd.res: uechosd.rc uechosd.h
rc -r uechosd.rc

# Make a symbol file, for debugging
uechosd.sym: uechosd.map
mapsym uechosd.map

uechosd.obj: uechosd.c cgarf.h fmters.h plaints.h uechosd.h \
$(INCDIR)\pctcp\winapp.h

# Build the DLL -- in a separate directory because of conflicts in
# C compilation flags for DLL objects.
dll\uechosdl.lib:
cd dll
@echo Now in DLL\ subdirectory -- watch out if 'make' aborts...
$(MAKE)
cd ..


##########################################################################
############################### library ################################
##########################################################################

cgarf.obj: cgarf.c cgarf.h

fmters.obj: fmters.c fmters.h $(INCDIR)\pctcp\winapp.h

oplaint.obj: oplaint.c plaints.h $(INCDIR)\pctcp\winapp.h

pplaint.obj: pplaint.c plaints.h fmters.h $(INCDIR)\pctcp\winapp.h

lib.lib: $(LIBOBJS)
del $(TROOT).rsp
for %a in ($(LIBOBJS)) do echo + %a & >>$(TROOT).rsp
echo + >>$(TROOT).rsp
del lib.lib
tlib /C lib.lib @$(TROOT).rsp

##########################################################################
############################# housekeeping #############################
##########################################################################

bare: i_bare
cd dll
@echo Now in DLL\ subdirectory -- watch out if 'make' aborts...
$(MAKE) bare
cd ..

i_bare: i_clean
del *.exe
del *.map
del *.sym

clean: i_clean
cd dll
@echo Now in DLL\ subdirectory -- watch out if 'make' aborts...
$(MAKE) clean
cd ..

i_clean:
del *.obj
del *.lib
del *.res
del $(TROOT).*

# Debugging stuff
DBGDIR =d:\dbgt
dbg: i_dbg
cd dll
@echo Now in DLL\ subdirectory -- watch out if 'make' aborts...
$(MAKE) dbg
cd ..

i_dbg: all techos.sym uecho.sym uechos.sym uechosd.sym
copy *.exe $(DBGDIR)
copy *.dll $(DBGDIR)
copy *.map $(DBGDIR)
copy *.sym $(DBGDIR)

dbgsrc: i_dbgsrc
cd dll
@echo Now in DLL\ subdirectory -- watch out if 'make' aborts...
$(MAKE) dbgsrc
cd ..

i_dbgsrc: i_dbg
copy *.c $(DBGDIR)
copy *.h $(DBGDIR)


# eof

#
# $Log: J:\devkit.dos\vcs\srcsmpl\samples.win\src\makefile.bcv $
#
# Rev 1.3 28 Jul 1993 16:49:06 arnoff
# Merge Lilac Branch into trunk.
#
# Rev 1.2.1.0 19 Apr 1993 20:13:42 rcq
# replacing existing makefile with the proper one (without tcrud)
#
# Rev 1.2 05 Oct 1992 15:54:14 rcq
# changed bin and lib directories
#
# Rev 1.1 03 Aug 1992 14:44:00 paul
# added install target
#
# Rev 1.0 20 Jul 1992 20:07:36 paul
# Initial revision.
#