chunk.u.mak
最終更新:2009/12/16
001: # 002: # Makefile for APR Samples 003: # 004: # はじめに Shift_JIS のソースコードを ORG の下に保管しておく。 005: # Usage: 006: # make -f chunk.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) 018: 019: default: buildall 020: 021: buildall: kenchunk \ 022: kdechunk 023: 024: clean: 025: $(RM) *.o *.c *.h *~ kenchunk kdechunk 026: 027: mystab.o: mystab.h 028: mybb: mybb.h 029: 030: kenchunk.o: mystab.h 031: kdechunk.o: mystab.h mybb.h 032: 033: mystab.h: ORG/mystab.h 034: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 035: 036: mystab.c: ORG/mystab.c 037: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 038: 039: mybb.h: ORG/mybb.h 040: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 041: 042: mybb.c: ORG/mybb.c 043: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 044: 045: kenchunk.c: ORG/kenchunk.c 046: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 047: 048: kdechunk.c: ORG/kdechunk.c 049: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 050: 051: kenchunk: kenchunk.o mystab.o 052: $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) 053: 054: kdechunk: kdechunk.o mystab.o mybb.o 055: $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
KAKU PROJECT (2009) |