add commands for building and linking bchanf library.
@@ -38,7 +38,7 @@ | ||
38 | 38 | VPATH = $(S) |
39 | 39 | |
40 | 40 | # ヘッダファイルのディレクトリ追加 |
41 | -HEADER := $(S) $(HEADER) | |
41 | +HEADER := $(S) $(HEADER) ../src/bchanf/src | |
42 | 42 | |
43 | 43 | # ソースファイル |
44 | 44 | 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 array.c render.c layoutstyle.c traydata.c hmi.c wordlist.c tadsearch.c httpdateparser.c setcookieheader.c psvlexer.c cookiedb.c |
@@ -68,12 +68,16 @@ | ||
68 | 68 | INST = $(addprefix $(TARGET), .bz .map) |
69 | 69 | NOINST = $(addprefix $(TARGET), .out .fsn .dbx) |
70 | 70 | |
71 | -all: $(INST) | |
71 | +all: library $(INST) | |
72 | 72 | |
73 | -$(TARGET).out: $(OBJ) | |
73 | +library: | |
74 | + @$(MAKE) -f Makefile.lib -C ./bchanf | |
75 | + | |
76 | +$(TARGET).out: $(OBJ) bchanf/libbchanf.a | |
74 | 77 | $(LINK.o) $(LDOBJS) $^ $(LOADLIBES) $(LDLIBS) $(OUTPUT_OPTION) |
75 | 78 | |
76 | 79 | clean: |
80 | + @$(MAKE) clean -f Makefile.lib -C ./bchanf | |
77 | 81 | $(RM) $(OBJ) |
78 | 82 | $(RM) $(WC_SRC:%.C=%.c) $(DBSRC) |
79 | 83 | $(RM) $(INST) $(NOINST) *.lst $(DEPS) |