home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
SNWS191S.ZIP
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1993-08-23
|
3KB
|
102 lines
# Makefile for SNews ver. 1.91
.AUTODEPEND
#============================================================================
# If BCOS2 is defined, compile with Borland C++ for OS/2
#============================================================================
!if $d(BCOS2)
CC = bcc
TLINK = tlink /Toe /ap
INCPATH = c:\bcos2\include
LIBPATH = c:\bcos2\lib
STARTUP = c02
RTLLIB = c2i os2
#============================================================================
# Else, if BCDOS is defined, compile with Borland C++ for DOS
#============================================================================
!elif $d(BCDOS)
CC = bcc -mc
TLINK = tlink
INCPATH = c:\bc\include
LIBPATH = c:\bc\lib
STARTUP = c0c
RTLLIB = cc
#============================================================================
# Else, compile with Turbo C++ for DOS
#============================================================================
!else
CC = tcc -mc
TLINK = tlink
INCPATH = c:\tc\include
LIBPATH = c:\tc\lib
STARTUP = c0c
RTLLIB = cc
!endif
#============================================================================
# Define implicit rules
#============================================================================
.c.obj:
$(CC) -c -I$(INCPATH) -O -v -w {$< }
#============================================================================
# Define explicit rules
#============================================================================
all: addgroup.exe expire.exe rmgroup.exe snews.exe unbatch.exe
addgroup.exe: addgroup.obj active.obj
$(TLINK) /c /x /L$(LIBPATH) $(STARTUP) $**, $*,, $(RTLLIB)
expire.exe: expire.obj active.obj amatch.obj
$(TLINK) /c /x /L$(LIBPATH) $(STARTUP) $**, $*,, $(RTLLIB)
rmgroup.exe: rmgroup.obj active.obj
$(TLINK) /c /x /L$(LIBPATH) $(STARTUP) $**, $*,, $(RTLLIB)
snews.exe: snews.obj active.obj article.obj getopt.obj history.obj pccharst.obj post.obj
$(TLINK) /c /x /L$(LIBPATH) $(STARTUP) $**, $*,, $(RTLLIB)
unbatch.exe: unbatch.obj active.obj history.obj
$(TLINK) /c /x /L$(LIBPATH) $(STARTUP) $**, $*,, $(RTLLIB)
#============================================================================
# Define individual file dependencies
#============================================================================
addgroup.obj: makefile addgroup.c
expire.obj: makefile expire.c
rmgroup.obj: makefile rmgroup.c
snews.obj: makefile snews.c
unbatch.obj: makefile unbatch.c
active.obj: makefile active.c
amatch.obj: makefile amatch.c
article.obj: makefile article.c
getopt.obj: makefile getopt.c
history.obj: makefile history.c
pccharst.obj: makefile pccharst.c
post.obj: makefile post.c