OSDN Git Service

change vesion number.
[bbk/bchan.git] / src / Makefile
index b58102b..ae7f4d8 100644 (file)
@@ -1,5 +1,5 @@
 #
-#      @(#)Makefile (bchan: BTRON 2channel thread viewer)
+#      @(#)Makefile (bchan: BTRON BBS thread viewer)
 #              GNU make ÍÑ
 #
 #      make ¤ÎÊýË¡
@@ -14,7 +14,7 @@
 #
 
 # ¥Ð¡¼¥¸¥ç¥ó
-version = 0x0101
+version = 0x0400
 
 # ¥ê¥ê¡¼¥¹ÍѤò¥Ç¥Õ¥©¥ë¥È¤Ë¤¹¤ë
 mode =
@@ -23,6 +23,9 @@ mode =
 DEPS = Dependencies
 DEPENDENCIES_OUTPUT := $(DEPS)
 
+# ¥Þ¥ë¥Á¥¿¥¹¥¯Âбþ¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ¹¤ë
+USE_MT = 1
+
 # ¥¢¥×¥ê¥±¡¼¥·¥ç¥óɸ½à¥ë¡¼¥ë
 include ../../etc/makerules
 
@@ -35,10 +38,10 @@ S = ../src
 VPATH = $(S)
 
 # ¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤Î¥Ç¥£¥ì¥¯¥È¥êÄɲÃ
-HEADER := $(S) $(HEADER)
+HEADER := $(S) $(HEADER) ../src/bchanf/src
 
 # ¥½¡¼¥¹¥Õ¥¡¥¤¥ë
-SRC =  main.c cache.c parser.c layout.c window.c retriever.c tadlib.c confirm.c poptray.c postres.c http.c submit.c sjisstring.c parselib.c submitutil.c bchan_vobj.c tadurl.c
+SRC =  main.c cache.c parser.c layout.c retriever.c tadlib.c poptray.c postres.c http.c submit.c sjisstring.c parselib.c submitutil.c bchan_vobj.c tadurl.c bchan_panels.c bchan_menus.c residhash.c resindexhash.c tadimf.c layoutarray.c render.c layoutstyle.c traydata.c hmi.c wordlist.c tadsearch.c httpdateparser.c setcookieheader.c psvlexer.c cookiedb.c
 
 # ¥Ç¡¼¥¿¥Ü¥Ã¥¯¥¹¥½¡¼¥¹¥Õ¥¡¥¤¥ë
 DBSRC =
@@ -65,15 +68,20 @@ LOADLIBES += -limg
 INST = $(addprefix $(TARGET), .bz .map)
 NOINST = $(addprefix $(TARGET), .out .fsn .dbx)
 
-all: $(INST)
+all: library $(INST)
+
+library:
+       @$(MAKE) -f Makefile.lib -C ./bchanf
 
-$(TARGET).out: $(OBJ)
+$(TARGET).out: $(OBJ) bchanf/libbchanf.a
        $(LINK.o) $(LDOBJS) $^ $(LOADLIBES) $(LDLIBS) $(OUTPUT_OPTION)
 
 clean:
+       @$(MAKE) clean -f Makefile.lib -C ./bchanf
        $(RM) $(OBJ)
        $(RM) $(WC_SRC:%.C=%.c) $(DBSRC)
        $(RM) $(INST) $(NOINST) *.lst $(DEPS)
+       $(RM) $(TARGET).btf _VerUpCmd.btf _t
 
 install: $(INST:%=$(EXE_INSTALLDIR)/%)
 
@@ -82,15 +90,25 @@ $(EXE_INSTALLDIR)/$(TARGET).out: $(EXE_INSTALLDIR)/%: %
 
 # °µ½Ì¥¢¡¼¥«¥¤¥Ö
 
-$(TARGET).bz: $(NOINST)
+$(TARGET).bz: $(TARGET).btf _VerUpCmd.btf
+       $(MKBTF) -o$@ -c -tbchan \
+               @0.0.0.0.0._VerUpCmd.btf \
+               @0.0.0.0.0.$(TARGET).btf
+
+$(TARGET).btf: $(NOINST)
        $(CP) $(TARGET).out _t
        $(STRIP) _t
-       $(MKBTF) -o$@ -a0x8002 -c -tbchan \
+       $(MKBTF) -o$@ -a0x8002 -tbchan \
                9.0x163._t \
                10.0.$(TARGET).dbx \
                7.$(version).$(TARGET).fsn
        $(RM) _t
 
+_VerUpCmd.btf: _VerUpCmd
+       $(CP) $(S)/_VerUpCmd _t
+       $(MKBTF) -o_VerUpCmd.btf -t_VerUpCmd 31.0._t
+       $(RM) _t
+
 # ¥½¡¼¥¹¤Î°Í¸´Ø·¸
 
 $(WC_SRC:%.C=%.c):