aboutsummaryrefslogtreecommitdiffstats
path: root/XXMakefile
diff options
context:
space:
mode:
authorAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-08 05:14:08 +0000
committerAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-08 05:14:08 +0000
commit68a07bf03b7624c9924065cce9ffa45497225834 (patch)
treec2adb06a909a8594445e4a3f8587c4bad46e3ecd /XXMakefile
downloadw3m-68a07bf03b7624c9924065cce9ffa45497225834.tar.gz
w3m-68a07bf03b7624c9924065cce9ffa45497225834.zip
Initial revision
Diffstat (limited to '')
-rw-r--r--XXMakefile128
1 files changed, 128 insertions, 0 deletions
diff --git a/XXMakefile b/XXMakefile
new file mode 100644
index 0000000..4ebb0c6
--- /dev/null
+++ b/XXMakefile
@@ -0,0 +1,128 @@
+#ifdef makefile_parameter
+
+BIN_DIR = /usr/local/bin
+HELP_DIR = /usr/local/lib/w3m
+LIB_DIR = /usr/local/lib/w3m
+HELP_FILE = w3mhelp-w3m_ja.html
+SYS_LIBRARIES = -lgpm -lbsd -lnsl -ltermcap -L/usr/local/ssl/lib -lssl -lcrypto
+LOCAL_LIBRARIES =
+CC = gcc
+MYCFLAGS = -g -Wall -I./gc/include -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include
+GCCFLAGS = -g -Wall -I./gc/include -DATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT -DNO_DEBUGGING #-DNO_SIGNALS
+KEYBIND_SRC = keybind.c
+KEYBIND_OBJ = keybind.o
+EXT=
+MATHLIB=-lm
+GCLIB=gc/gc.a
+GCTARGET=gc/gc.a
+RANLIB=ranlib
+MKDIR=mkdir -p
+VERSION=0.2.1
+MODEL=Linux.i686-monster-ja
+#else
+SRCS=main.c file.c buffer.c display.c etc.c search.c linein.c table.c local.c \
+ form.c map.c frame.c rc.c menu.c mailcap.c\
+ func.c cookie.c history.c backend.c $(KEYBIND_SRC)
+OBJS=main.o file.o buffer.o display.o etc.o search.o linein.o table.o local.o\
+ form.o map.o frame.o rc.o menu.o mailcap.o\
+ func.o cookie.o history.o backend.o $(KEYBIND_OBJ)
+LSRCS=terms.c conv.c url.c ftp.c anchor.c mimehead.c hash.c parsetagx.c\
+ tagtable.c istream.c
+LOBJS=terms.o conv.o url.o ftp.o anchor.o mimehead.o hash.o parsetagx.o\
+ tagtable.o istream.o
+LLOBJS=version.o
+ALIBOBJS=Str.o indep.o regex.o textlist.o parsetag.o myctype.o
+ALIB=libindep.a
+ALLOBJS=$(OBJS) $(LOBJS) $(LLOBJS)
+
+TARGET=w3m$(EXT)
+BOOKMARKER=w3mbookmark$(EXT)
+HELPER=w3mhelperpanel$(EXT)
+TARGETS=$(TARGET) $(BOOKMARKER) $(HELPER)
+
+INCLUDES=-I.
+
+DEFS=$(INCLUDES) # -DDEBUG
+CFLAGS=$(MYCFLAGS) $(DEFS)
+LIBS=-L. -lindep $(GCLIB) $(MATHLIB) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES)
+INSTALL=sh install.sh
+INSTALL2=sh ../install.sh
+AR=ar
+
+all: $(TARGETS)
+
+$(TARGET): $(ALLOBJS) $(ALIB) $(GCTARGET)
+ $(CC) $(CFLAGS) -o $(TARGET) $(ALLOBJS) $(LIBS)
+
+$(ALIB): $(ALIBOBJS)
+ $(AR) rv $(ALIB) $(ALIBOBJS)
+ $(RANLIB) $(ALIB)
+
+$(OBJS): fm.h funcname1.h
+
+tagtable.c: html.h tagtable.tab mktable$(EXT)
+ ./mktable 100 tagtable.tab > tagtable.c
+
+func.o: funcname.c
+keybind.o: funcname2.h
+keybind_lynx.o: funcname2.h
+parsetagx.o: html.c
+
+funcname.c: funcname.tab
+ awk -f funcname0.awk funcname.tab > funcname.c
+
+funcname1.h: funcname.tab
+ awk -f funcname1.awk funcname.tab > funcname1.h
+
+funcname2.h: funcname.tab
+ awk -f funcname2.awk funcname.tab > funcname2.h
+
+mktable$(EXT): mktable.o hash.o $(ALIB) $(GCTARGET)
+ $(CC) $(CFLAGS) -o mktable$(EXT) mktable.o hash.o $(LIBS)
+
+$(BOOKMARKER): w3mbookmark.o $(ALIB) $(GCTARGET)
+ $(CC) $(CFLAGS) -o $(BOOKMARKER) w3mbookmark.o $(LIBS)
+
+$(HELPER): w3mhelperpanel.o $(ALIB) $(GCTARGET)
+ $(CC) $(CFLAGS) -o $(HELPER) w3mhelperpanel.o $(LIBS)
+
+gc/gc.a:
+ cd gc; make CC='$(CC)' CFLAGS='$(GCCFLAGS)'
+
+install: $(TARGETS)
+ -$(MKDIR) $(DESTDIR)$(BIN_DIR)
+ -$(MKDIR) $(DESTDIR)$(HELP_DIR)
+ -$(MKDIR) $(DESTDIR)$(LIB_DIR)
+ $(INSTALL) -m 755 $(TARGET) $(DESTDIR)$(BIN_DIR)/$(TARGET)
+ $(INSTALL) -m 644 w3mhelp-w3m_en.html $(DESTDIR)$(HELP_DIR)/w3mhelp-w3m_en.html
+ $(INSTALL) -m 644 w3mhelp-w3m_ja.html $(DESTDIR)$(HELP_DIR)/w3mhelp-w3m_ja.html
+ $(INSTALL) -m 644 w3mhelp-lynx_en.html $(DESTDIR)$(HELP_DIR)/w3mhelp-lynx_en.html
+ $(INSTALL) -m 644 w3mhelp-lynx_ja.html $(DESTDIR)$(HELP_DIR)/w3mhelp-lynx_ja.html
+ $(INSTALL) -m 644 $(HELP_FILE) $(DESTDIR)$(HELP_DIR)/w3mhelp.html
+ for d in $(BOOKMARKER) $(HELPER); do $(INSTALL) -m 755 $$d $(DESTDIR)$(LIB_DIR)/$$d; done
+ (cd scripts; for i in *.cgi; do $(INSTALL2) -m 755 $$i $(DESTDIR)$(LIB_DIR)/$$i; done)
+
+uninstall:
+ -$(RM) $(BIN_DIR)/$(TARGET)
+ -$(RM) $(HELP_DIR)/w3mhelp-lynx_en.html
+ -$(RM) $(HELP_DIR)/w3mhelp-lynx_ja.html
+ -$(RM) $(HELP_DIR)/w3mhelp-w3m_en.html
+ -$(RM) $(HELP_DIR)/w3mhelp-w3m_ja.html
+ -$(RM) $(HELP_DIR)/w3mhelp.html
+
+clean: sweep
+ rm -f *.o *.a $(TARGETS) mktable$(EXT)
+
+sweep:
+ -rm -f core *~ *.bak *.orig *.rej
+
+depend:
+ makedepend $(CFLAGS) *.c
+
+dist:
+ cd ..; mv w3m w3m-$(VERSION); tar cvfz w3m-$(VERSION).tar.gz w3m-$(VERSION); mv w3m-$(VERSION) w3m
+
+bindist:
+ cd ..; mv w3m w3m-$(VERSION); tar cvfz w3m-$(VERSION)-$(MODEL).tar.gz w3m-$(VERSION)/{w3m*,doc*,Bonus*,README,scripts}; mv w3m-$(VERSION) w3m
+
+# DO NOT DELETE