myio.u.mak

最終更新:2009/12/19

myio.u.mak

001: #
002: # Makefile for APR Samples
003: #
004: # はじめに Shift_JIS のソースコードを ORG の下に保管しておく。
005: # Usage:
006: # make -f myio.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:	kdechunk2 \
022: 		kdechunk3 \
023: 		kmyio_htget \
024: 		kmyio_htget2 \
025: 		kmyio_htget3 
026: 
027: clean:
028: 	$(RM) *.o *.c *.h *~ \
029: 		kdechunk2 \
030: 		kdechunk3 \
031: 		kmyio_htget \
032: 		kmyio_htget2 \
033: 		kmyio_htget3 
034: 
035: mystab.h:	ORG/mystab.h
036: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
037: 
038: mystab.c:	ORG/mystab.c
039: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
040: 
041: mystab.o:	mystab.h
042: 
043: myio.h:	ORG/myio.h
044: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
045: 
046: myio.c:	ORG/myio.c
047: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
048: 
049: myio.o:	myio.h
050: 
051: myio_apr.h:	ORG/myio_apr.h
052: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
053: 
054: myio_apr.c:	ORG/myio_apr.c
055: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
056: 
057: myio_apr.o:	myio.h myio_apr.h
058: 
059: myio_bio.h:	ORG/myio_bio.h
060: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
061: 
062: myio_bio.c:	ORG/myio_bio.c
063: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
064: 
065: myio_bio.o:	myio.h myio_bio.h
066: 
067: myio_chunk.h:	ORG/myio_chunk.h
068: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
069: 
070: myio_chunk.c:	ORG/myio_chunk.c
071: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
072: 
073: myio_chunk.o:	myio.h myio_chunk.h
074: 
075: myht_util.h:	ORG/myht_util.h
076: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
077: 
078: myht_util.c:	ORG/myht_util.c
079: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
080: 
081: myht_util.o:	myht_util.h
082: 
083: bio_apr_socket.c:	ORG/bio_apr_socket.c
084: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
085: 
086: bio_apr_socket.h:	ORG/bio_apr_socket.h
087: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
088: 
089: bio_apr_socket.o:	bio_apr_socket.h
090: 
091: kdechunk2.c:	ORG/kdechunk2.c
092: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
093: 
094: kdechunk2.o:	mystab.h myio_chunk.h myio_apr.h myio.h
095: 
096: kdechunk2:	kdechunk2.o mystab.o myio_chunk.o myio_apr.o myio.o
097: 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
098: 
099: kdechunk3.c:	ORG/kdechunk3.c
100: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
101: 
102: kdechunk3.o:	mystab.h myio_chunk.h myio_apr.h myio.h
103: 
104: kdechunk3:	kdechunk3.o mystab.o myio_chunk.o myio_apr.o myio.o
105: 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
106: 
107: kmyio_htget.c:	ORG/kmyio_htget.c
108: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
109: 
110: kmyio_htget.o:	mystab.h myio_apr.h myio.h myio_chunk.h myht_util.h
111: 
112: kmyio_htget:	kmyio_htget.o mystab.o myio_apr.o myio.o myio_chunk.o myht_util.o
113: 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
114: 
115: kmyio_htget2.c:	ORG/kmyio_htget2.c
116: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
117: 
118: kmyio_htget2.o:	mystab.h myio_apr.h myio.h myio_chunk.h \
119: 			myht_util.h myio_bio.h bio_apr_socket.h
120: 
121: kmyio_htget2:	kmyio_htget2.o mystab.o myio_apr.o myio.o myio_chunk.o \
122: 			myht_util.o myio_bio.o bio_apr_socket.o
123: 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
124: 
125: kmyio_htget3.c:	ORG/kmyio_htget3.c
126: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
127: 
128: kmyio_htget3.o:	mystab.h myio_apr.h myio.h myio_chunk.h \
129: 			myht_util.h myio_bio.h bio_apr_socket.h
130: 
131: kmyio_htget3:	kmyio_htget3.o mystab.o myio_apr.o myio.o myio_chunk.o \
132: 			myht_util.o myio_bio.o bio_apr_socket.o
133: 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
Copyright (C) KAKU PROJECT (2009)KAKU PROJECT (2009)