kbio.u.mak
最終更新:2009/12/19
001: # 002: # Makefile for APR Samples 003: # 004: # はじめに Shift_JIS のソースコードを ORG の下に保管しておく。 005: # Usage: 006: # make -f kbio.u.mak 007: # 008: 009: APR_CONFIG=$(shell which apr-1-config) 010: APU_CONFIG=$(shell which apu-1-config) 011: 012: CC=gcc 013: ICONV=iconv 014: 015: CFLAGS=$(shell ${APR_CONFIG} --cflags --cppflags --includes) -Wall 016: LDFLAGS=$(shell ${APR_CONFIG} --ldflags) 017: LDLIBS=$(shell ${APR_CONFIG} --libs --link-ld) $(shell ${APU_CONFIG} --libs --link-ld) -lcrypto 018: 019: default: buildall 020: 021: buildall: kbio_htget \ 022: kbio_htget_ssl 023: 024: clean: 025: $(RM) *.o *.c *.h *~ \ 026: kbio_htget \ 027: kbio_htget_ssl 028: 029: mystab.h: ORG/mystab.h 030: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 031: 032: mystab.c: ORG/mystab.c 033: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 034: 035: mystab.o: mystab.h 036: 037: mybb.h: ORG/mybb.h 038: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 039: 040: mybb.c: ORG/mybb.c 041: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 042: 043: mybb.o: mybb.h 044: 045: myht_util.h: ORG/myht_util.h 046: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 047: 048: myht_util.c: ORG/myht_util.c 049: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 050: 051: myht_util.o: myht_util.h 052: 053: bio_apr_socket.c: ORG/bio_apr_socket.c 054: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 055: 056: bio_apr_socket.h: ORG/bio_apr_socket.h 057: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 058: 059: bio_apr_socket.o: bio_apr_socket.h 060: 061: kbio_htget.c: ORG/kbio_htget.c 062: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 063: 064: kbio_htget.o: mystab.h bio_apr_socket.h myht_util.h 065: 066: kbio_htget: kbio_htget.o mystab.o bio_apr_socket.o myht_util.o 067: $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) 068: 069: kbio_htget_ssl.c: ORG/kbio_htget_ssl.c 070: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 071: 072: kbio_htget_ssl.o: mystab.h bio_apr_socket.h myht_util.h 073: 074: kbio_htget_ssl: kbio_htget_ssl.o mystab.o bio_apr_socket.o myht_util.o 075: $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) 076:
KAKU PROJECT (2009) |