#
-# @(#)Makefile (bchan: BTRON 2channel thread viewer)
+# @(#)Makefile (bchan: BTRON BBS thread viewer)
# GNU make ÍÑ
#
# make ¤ÎÊýË¡
#
# ¥Ð¡¼¥¸¥ç¥ó
-version = 0x0101
+version = 0x0400
# ¥ê¥ê¡¼¥¹ÍѤò¥Ç¥Õ¥©¥ë¥È¤Ë¤¹¤ë
mode =
DEPS = Dependencies
DEPENDENCIES_OUTPUT := $(DEPS)
+# ¥Þ¥ë¥Á¥¿¥¹¥¯Âбþ¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ¹¤ë
+USE_MT = 1
+
# ¥¢¥×¥ê¥±¡¼¥·¥ç¥óɸ½à¥ë¡¼¥ë
include ../../etc/makerules
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 =
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)/%)
# °µ½Ì¥¢¡¼¥«¥¤¥Ö
-$(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):