aboutsummaryrefslogtreecommitdiffstats
path: root/XMakefile
diff options
context:
space:
mode:
authorDai Sato <satodai@dog.intcul.tohoku.ac.jp>2001-11-22 17:52:28 +0000
committerDai Sato <satodai@dog.intcul.tohoku.ac.jp>2001-11-22 17:52:28 +0000
commita5067a1853b490e9c551ac2ff7c4cb58a9bb3f48 (patch)
tree42ca751a0b79dd050082b1e87c7d8957c161c6ff /XMakefile
parent[w3m-dev 02509] (diff)
downloadw3m-inu-0-2-2.tar.gz
w3m-inu-0-2-2.zip
w3m-0.2.2-inu-1.1 sourceinu-0-2-2-rel-1-1inu-0-2-2
Diffstat (limited to 'XMakefile')
-rw-r--r--XMakefile34
1 files changed, 6 insertions, 28 deletions
diff --git a/XMakefile b/XMakefile
index b09cc8f..fc5eaf8 100644
--- a/XMakefile
+++ b/XMakefile
@@ -1,4 +1,3 @@
-# $Id: XMakefile,v 1.10 2001/11/21 18:51:48 ukai Exp $
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)
@@ -20,20 +19,17 @@ HELPER=w3mhelperpanel$(EXT)
INFLATE=inflate$(EXT)
TARGETS=$(TARGET) $(EXT_TARGETS)
-SCRIPTSUBDIRS = scripts scripts/multipart scripts/w3mman
-SUBDIRS = $(SCRIPTSUBDIRS)
-
INCLUDES=-I.
DEFS=$(INCLUDES) # -DDEBUG
-CFLAGS=$(OPTS) $(MYCFLAGS) $(DEFS)
+CFLAGS=$(MYCFLAGS) $(DEFS)
LIBS=-L. -lindep $(GCLIB) $(MATHLIB) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES)
LIBS2=-L. -lindep $(GCLIB) $(LOCAL_LIBRARIES)
INSTALL=sh install.sh
INSTALL2=sh ../install.sh
AR=ar
-all: $(TARGETS) all-scripts
+all: $(TARGETS)
$(TARGET): $(ALLOBJS) $(ALIB) $(GCTARGET)
$(CC) $(CFLAGS) -o $(TARGET) $(ALLOBJS) $(LIBS)
@@ -59,10 +55,10 @@ funcname.c: funcname.tab
sort funcname.tab | awk -f funcname0.awk > funcname.c
funcname1.h: funcname.tab
- sort funcname.tab | awk -f funcname1.awk > funcname1.h
+ awk -f funcname1.awk funcname.tab > funcname1.h
funcname2.h: funcname.tab
- sort funcname.tab | awk -f funcname2.awk > funcname2.h
+ 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 $(LIBS2)
@@ -80,10 +76,9 @@ inflate.o: inflate.c
$(CC) $(CFLAGS) $(Z_CFLAGS) -c inflate.c
gc/gc.a:
- cd gc; $(MAKE) CC='$(CC)' CFLAGS='$(GCCFLAGS) $(GC_CFLAGS)' SPECIALCFLAGS='-I./\$(srcdir)/include $(GC_CFLAGS)'
-
+ cd gc; make CC='$(CC)' CFLAGS='$(GCCFLAGS) $(GC_CFLAGS)' SPECIALCFLAGS='-I./\$(srcdir)/include $(GC_CFLAGS)'
-install: $(TARGETS) all-scripts
+install: $(TARGETS)
-$(MKDIR) $(DESTDIR)$(BIN_DIR)
-$(MKDIR) $(DESTDIR)$(HELP_DIR)
-$(MKDIR) $(DESTDIR)$(LIB_DIR)
@@ -96,18 +91,6 @@ install: $(TARGETS) all-scripts
for d in $(EXT_TARGETS); 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)
-all-scripts:
- for dir in $(SCRIPTSUBDIRS); \
- do \
- (cd $$dir; $(MAKE) PERL='$(PERL)' BIN_DIR='$(BIN_DIR)' LIB_DIR='$(LIB_DIR)'); \
- done
-
-install-scripts: all-scripts
- for dir in $(SCRIPTSUBDIRS); \
- do \
- (cd $$dir; $(MAKE) PERL='$(PERL)' BIN_DIR='$(BIN_DIR)' LIB_DIR='$(LIB_DIR)' DESTDIR='$(DESTDIR)' INSTALL='sh $(PWD)/install.sh' install); \
- done
-
uninstall:
-$(RM) $(BIN_DIR)/$(TARGET)
-$(RM) $(HELP_DIR)/w3mhelp-lynx_en.html
@@ -121,11 +104,6 @@ uninstall:
clean: sweep
rm -f *.o *.a $(TARGETS) mktable$(EXT)
- rm -f funcname.c funcname1.h funcname2.h tagtable.c
- for dir in $(SCRIPTSUBDIRS); \
- do \
- (cd $$dir; $(MAKE) clean); \
- done
sweep:
-rm -f core *~ *.bak *.orig *.rej