blob: d42883b95c0f8a148d880da98541425a4b9c5563 (
plain) (
tree)
|
|
# template-makefile for Lynx src directory
SHELL = /bin/sh
@SET_MAKE@
prefix = @prefix@
exec_prefix = @exec_prefix@
srcdir = @srcdir@
VPATH = $(srcdir)
MCFLAGS = # FIXME: set in parent makefile
RESOLVLIB = # FIXME: set in parent makefile
SITE_DEFS = # FIXME: set in parent makefile
SITE_LIBS = # FIXME: set in parent makefile
SOCKSLIB = # FIXME: set in parent makefile
WAISLIB = # FIXME: set in parent makefile
WWWINC = WWW/Library/Implementation
WWWLIB = ../WWW/Library/unix/libwww.a
CC = @CC@
CPP = @CPP@
CPPOPTS = @DEFS@ @CPPFLAGS@ -I.. -I../$(WWWINC) $(MCFLAGS) $(SITE_DEFS)
CFLAGS = $(CPPOPTS) @CFLAGS@
LINT = @LINT@
LINTOPTS =
LIBS = @LIBS@ $(RESOLVLIB) $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)
LDFLAGS = @LDFLAGS@
CHARTRANS_OBJS=UCdomap.o UCAux.o UCAuto.o
OBJS= LYClean.o LYShowInfo.o LYEdit.o LYStrings.o \
LYMail.o HTAlert.o GridText.o LYGetFile.o \
LYMain.o LYMainLoop.o LYCurses.o LYBookmark.o LYUtils.o \
LYOptions.o LYReadCFG.o LYSearch.o LYHistory.o \
LYForms.o LYPrint.o LYrcFile.o LYDownload.o LYNews.o LYKeymap.o \
HTML.o HTFWriter.o HTInit.o DefaultStyle.o LYLocal.o LYUpload.o \
LYLeaks.o LYexit.o LYJump.o LYList.o LYCgi.o LYTraversal.o \
LYEditmap.o LYCharSets.o LYCharUtils.o LYMap.o LYCookie.o LYExtern.o \
LYStyle.o LYHash.o @EXTRA_OBJS@
C_SRC = $(OBJS:.o=.c)
all: lynx
.SUFFIXES : .i
.c.o:
@SHOW_CC@
@ECHO_CC@$(CC) $(CFLAGS) -c $(srcdir)/$*.c
.c.i:
@SHOW_CC@
@ECHO_CC@$(CPP) -C $(CPPOPTS) $*.c >$@
lynx: message @EXTRA_DEPS@ $(OBJS) $(WWWLIB)
@echo "Linking and creating Lynx executable"
$(CC) $(CFLAGS) $(LDFLAGS) -o lynx $(OBJS) $(WWWLIB) $(LIBS)
@echo "Copying Lynx executable into top-level directory"
cp lynx ..
@echo "Welcome to Lynx!"
message:
@echo "Compiling Lynx sources"
do_chartrans_stuff:
-cd chrtrans && $(MAKE) \
MCFLAGS="$(MCFLAGS)" \
SITE_DEFS="$(SITE_DEFS)" \
CC="$(CC)" tables
lint:
$(LINT) $(LINTOPTS) $(CPPOPTS) *.c > ../lint.out
clean:
rm -f lynx core *.[ob] *.bak
cd chrtrans && $(MAKE) clean
distclean: clean
LYMain.o: ../userdefs.h
LYMainLoop.o: ../userdefs.h
LYReadCFG.o: ../userdefs.h
HTFWriter.o: ../userdefs.h
LYGetFile.o: ../userdefs.h
LYOptions.o: ../userdefs.h
LYReadCFG.o: ../userdefs.h
LYrcFile.o: ../userdefs.h
LYMail.o: ../userdefs.h
LYUtils.o: ../userdefs.h
HTInit.o: ../userdefs.h
LYTraversal.o: ../userdefs.h
LYMail.o: ../userdefs.h
LYCharSets.o: ../userdefs.h
CHRTR= chrtrans/
TABLES= $(CHRTR)iso02_uni.h \
$(CHRTR)iso01_uni.h \
$(CHRTR)def7_uni.h \
$(CHRTR)iso03_uni.h \
$(CHRTR)iso04_uni.h \
$(CHRTR)iso05_uni.h \
$(CHRTR)iso06_uni.h \
$(CHRTR)iso07_uni.h \
$(CHRTR)iso08_uni.h \
$(CHRTR)iso09_uni.h \
$(CHRTR)iso10_uni.h \
$(CHRTR)koi8r_uni.h \
$(CHRTR)cp437_uni.h \
$(CHRTR)cp850_uni.h \
$(CHRTR)cp852_uni.h \
$(CHRTR)cp866_uni.h \
$(CHRTR)cp1250_uni.h \
$(CHRTR)cp1251_uni.h \
$(CHRTR)cp1252_uni.h \
$(CHRTR)viscii_uni.h \
$(CHRTR)utf8_uni.h \
$(CHRTR)rfc_suni.h \
$(CHRTR)mnemonic_suni.h \
$(CHRTR)mnem_suni.h
CMN=../WWW/Library/Implementation/
$(TABLES):
-cd chrtrans && $(MAKE) tables
UCdomap.o: UCdomap.c chrtrans/UCkd.h chrtrans/makeuctb chrtrans/makeuctb.c \
UCdomap.h $(CMN)UCMap.h $(TABLES) ../userdefs.h
UCAux.o : UCAux.c $(CMN)UCAux.h $(CMN)UCDefs.h
LYCookie.o: ../userdefs.h
depend :
makedepend -fmakefile -- $(CFLAGS) -- $(C_SRC)
# DO NOT DELETE THIS LINE -- make depend depends on it.
|