1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
|
# Watcom Makefile for slrn -*- sh -*-
# For CYGWIN32 or MINGW32, use Makefile.g32.
#
# 1997, March 01, bjf: Added all necessary (and probably some unnecessay)
# dependencies to the $(OBJDIR)/*$(O) targets.
# 2001, oct 10, pomj : small adjustments to fix the makefile.
#
#
#---------------------------------------------------------------------------
# This file is divided into five configurable sections. The last section
# is optional: Section 5 deals with setting up slrn to read the server name
# from a file. This is probably unnecessary on OS/2.
#-----------------------------------------------------------------------------
# 1. Choose a C compiler. It must understand prototypes.
#-----------------------------------------------------------------------------
CC = wcl386
#CC = gcc -g -Zcrtdll -Zmt -DOS2 -D__os2__#
#-----------------------------------------------------------------------------
# 2. On a few systems, additional libraries are required.
#-----------------------------------------------------------------------------
#MISCLIBS = -lsocket -ltermcap -lvideo# OS/2
MISCLIBS = $(SLIBDIR)\wslang32.lib,winspool.lib
#-----------------------------------------------------------------------------
# 3. Directory where the slang library, slanglib.a, is located.
# BUILD SLANG FIRST!!!! If you do not have it, get it from the same place
# you picked up slrn. The current home is space.mit.edu:/pub/davis/slang.
#-----------------------------------------------------------------------------
SDIR = ..\..\slang\src# Location of slang.h
SLIBDIR = $(SDIR)\w32objs# Location of libslang.a
#-----------------------------------------------------------------------------
# 4. Location where object files are placed.
#-----------------------------------------------------------------------------
OBJDIR = objs#
#-----------------------------------------------------------------------------
# 5. If you want to read the server from a file, uncomment the following
# lines and edit it as appropriate. See INSTALL for more information.
# It is also possible to provide defaults for other variables such as the
# HOSTNAME, etc... by editing the slrnfeat.h file. Again, read INSTALL.
#-----------------------------------------------------------------------------
#NNTPSERVERFILE = -DNNTPSERVER_FILE=\"/usr/local/lib/news/nntp_server\"
#SLRNLIBDIR = -DSLRN_LIB_DIR=\"/usr/local/lib/news\"
#SLRNLIBDIR = -DSLRN_LIB_DIR=\"$(HOME)/lib/slrn\"
#----------------------------------------------------------------------------
# Nothing below here should require changing.
#----------------------------------------------------------------------------
P = \#
O = .obj
OBJS = $(OBJDIR)$(P)art$(O) \
$(OBJDIR)$(P)art_misc$(O) \
$(OBJDIR)$(P)art_sort$(O) \
$(OBJDIR)$(P)chmap$(O) \
$(OBJDIR)$(P)editscore$(O) \
$(OBJDIR)$(P)group$(O) \
$(OBJDIR)$(P)hash$(O) \
$(OBJDIR)$(P)help$(O) \
$(OBJDIR)$(P)hooks$(O) \
$(OBJDIR)$(P)interp$(O) \
$(OBJDIR)$(P)menu$(O) \
$(OBJDIR)$(P)mime$(O) \
$(OBJDIR)$(P)misc$(O) \
$(OBJDIR)$(P)post$(O) \
$(OBJDIR)$(P)ranges$(O) \
$(OBJDIR)$(P)score$(O) \
$(OBJDIR)$(P)server$(O) \
$(OBJDIR)$(P)snprintf$(O) \
$(OBJDIR)$(P)slrn$(O) \
$(OBJDIR)$(P)sortdate$(O) \
$(OBJDIR)$(P)startup$(O) \
$(OBJDIR)$(P)ttymsg$(O) \
$(OBJDIR)$(P)util$(O) \
$(OBJDIR)$(P)decode$(O) \
$(OBJDIR)$(P)slrndir$(O) \
$(OBJDIR)$(P)version$(O) \
$(OBJDIR)$(P)print$(O) \
$(OBJDIR)$(P)vfile$(O) \
$(OBJDIR)$(P)xover$(O)
OBJSpull = \
$(OBJDIR)$(P)util$(O) \
$(OBJDIR)$(P)snprintf$(O) \
$(OBJDIR)$(P)ttymsg$(O) \
$(OBJDIR)$(P)slrnpull$(O) \
$(OBJDIR)$(P)slrndir$(O) \
$(OBJDIR)$(P)nntplib$(O) \
$(OBJDIR)$(P)ranges$(O) \
$(OBJDIR)$(P)vfile$(O)
DEBUG =
CFLAGS = $(DEBUG) /bt=nt /DWIN32 /oneartx /zp4 /5 /fp5 -I. -I$(SDIR) $(SLRNLIBDIR)
LDFLAGS = /l=nt
.c.obj: .AUTODEPEND
$(CC) $(CFLAGS) /c $< /fo=$@
slrn.exe: $(OBJDIR) config.h slangversion $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) /fe=$@ $(OBJS) $(MISCLIBS)
slrn.lnk: $(__MAKEFILES__)
%create $^@
for %i in ($(OBJS)) do %append $^@ FILE %i
slrnpull.exe: $(OBJDIR) config.h slangversion $(OBJSpull)
$(CC) $(CFLAGS) $(LDFLAGS) /fe=$@ $(OBJSpull) $(MISCLIBS)
uudecode.exe: decode.c
$(CC) $(CFLAGS) -DSTANDALONE -o uudecode.exe decode.c
touch decode.c
$(OBJDIR):
@mkdir $(OBJDIR)
config.h: slrnconf.h
copy slrnconf.h config.h
slangversion: $(OBJDIR)\chkslang.exe .SYMBOLIC
.\$(OBJDIR)\chkslang.exe slrn 10003 10400
$(OBJDIR)\chkslang.exe: $(OBJDIR)\chkslang$(O)
$(CC) $(OBJDIR)\chkslang$(O) /fe=$(OBJDIR)\chkslang.exe
$(OBJDIR)\chkslang$(O): chkslang.c config.h jdmacros.h
$(CC) -c -I$(SDIR) chkslang.c /fo=$(OBJDIR)\chkslang$(O)
clean:
rm -rf *$(O) *~ $(OBJDIR) slrn.exe uudecode.exe *.log \
core out out.* typescript files.pck* config.h
|