--- /dev/null
+#
+# @(#)Makefile (library using bchanf)
+# GNU make ÍÑ
+#
+# make ¤ÎÊýË¡
+# ¡¦make
+# ¥ê¥ê¡¼¥¹ÍѤÎÀµ¼°ÈǤòºîÀ®
+# ¡¦make mode=debug
+# ¥Ç¥Ð¥Ã¥°ÍѤ˺îÀ®
+# ¡¦make clean
+# make ¤ÇºîÀ®¤·¤¿Á´¤Æ¤Î¥Õ¥¡¥¤¥ë¤òºï½ü
+# ¡¦make install
+# µ¬Äê¤Î¾ì½ê¤Ë¥¤¥ó¥¹¥È¡¼¥ë (¼Âµ¡ÍѤΤß)
+#
+
+# ¥Ð¡¼¥¸¥ç¥ó
+version = 0x0010
+
+# ¥ê¥ê¡¼¥¹ÍѤò¥Ç¥Õ¥©¥ë¥È¤Ë¤¹¤ë
+mode =
+
+# ¥½¡¼¥¹¤Î°Í¸´Ø·¸¥Õ¥¡¥¤¥ë (¼«Æ°À¸À®)
+DEPS = Dependencies
+DEPENDENCIES_OUTPUT := $(DEPS)
+
+# ¥¢¥×¥ê¥±¡¼¥·¥ç¥óɸ½à¥ë¡¼¥ë
+MACHINE = pcat
+include $(BD)/appl/etc/makerules
+
+#----------------------------------------------------------------------
+# ºîÀ®ÂоÝ
+TARGET = libbchanf
+
+# ¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤Î¥µ¡¼¥Á¥Ñ¥¹
+TOPDIR = ../../src/bchanf
+S = $(TOPDIR)/src $(TOPDIR)/src/http $(TOPDIR)/src/parse
+VPATH = $(S)
+
+# ¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤Î¥Ç¥£¥ì¥¯¥È¥êÄɲÃ
+HEADER := $(S) $(HEADER)
+
+# ¥½¡¼¥¹¥Õ¥¡¥¤¥ë
+
+SRC_HTTP = http_connector.c \
+ http_transferdecoder.c \
+ http_contentdecoder.c \
+ http_headerlexer.c \
+ http_statuslineparser.c
+
+SRC_PARSE = tokenchecker.c \
+ charreferparser.c
+
+SRC = $(SRC_HTTP) $(SRC_PARSE)
+
+# ¥Ç¡¼¥¿¥Ü¥Ã¥¯¥¹¥½¡¼¥¹¥Õ¥¡¥¤¥ë
+DBSRC =
+
+SRC += $(DBSRC)
+
+WC_SRC = $(filter %.C, $(SRC))
+
+# ¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë
+OBJ = $(addsuffix .o, $(basename $(SRC)))
+
+# ¥³¥ó¥Ñ¥¤¥ë¥ª¥×¥·¥ç¥ó
+ifneq ($(mode), debug)
+ CFLAGS += -Wall
+endif
+
+CFLAGS += $(BUILDOPTIONS) -DBCHAN_CONFIG_DEBUG
+
+LOADLIBES += -limg
+
+#----------------------------------------------------------------------
+.PHONY: all clean install
+
+INST = $(addprefix $(TARGET), .a)
+
+all: $(INST)
+
+$(TARGET).a: $(OBJ)
+ $(GNUi386)/bin/ar $(ARFLAGS) $@ $^
+ $(RANLIB) $@
+
+clean:
+ $(RM) $(OBJ)
+ $(RM) $(WC_SRC:%.C=%.c) $(DBSRC)
+ $(RM) $(INST) $(NOINST) *.lst $(DEPS)
+
+install: $(INST:%=$(EXE_INSTALLDIR)/%)
+
+$(EXE_INSTALLDIR)/$(TARGET).out: $(EXE_INSTALLDIR)/%: %
+ $(EXE_INSTALL_STRIP)
+
+# ¥½¡¼¥¹¤Î°Í¸´Ø·¸
+
+$(WC_SRC:%.C=%.c):
+
+$(DBSRC):
+
+ifdef DEPENDENCIES_OUTPUT
+$(DEPS): ; touch $(DEPS)
+else
+$(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?
+endif
+
+include $(DEPS)