test0.u.mak
最終更新:2009/12/14
001: # 002: # Makefile for APR Samples 003: # 004: # はじめに Shift_JIS のソースコードを ORG の下に保管しておく。 005: # Usage: 006: # make -f test0.mak 007: 008: APR_CONFIG=$(shell which apr-1-config) 009: 010: CC=gcc 011: ICONV=iconv 012: 013: CFLAGS=$(shell ${APR_CONFIG} --cflags --cppflags --includes) -Wall 014: LDFLAGS=$(shell ${APR_CONFIG} --ldflags) 015: LDLIBS=$(shell ${APR_CONFIG} --libs --link-ld) 016: 017: default: buildall 018: 019: buildall: helloworld \ 020: print_addr \ 021: temp_file_sample 022: 023: clean: 024: $(RM) *.o *.c *~ helloworld print_addr temp_file_sample 025: 026: mystab.o: mystab.h 027: 028: mystab.h: ORG/mystab.h 029: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 030: 031: mystab.c: ORG/mystab.c 032: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 033: 034: helloworld.c: ORG/helloworld.c 035: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 036: 037: print_addr.c: ORG/print_addr.c 038: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 039: 040: temp_file_sample.c: ORG/temp_file_sample.c 041: $(ICONV) -f Shift_JIS -t EUC-JP $< > $@ 042: 043: helloworld: helloworld.o mystab.o 044: $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) 045: 046: print_addr: print_addr.o mystab.o 047: $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) 048: 049: temp_file_sample: temp_file_sample.o mystab.o 050: $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) 051:
KAKU PROJECT (2009) |