myio_xml.u.mak

最終更新:2009/12/19

myio_xml.u.mak

001: #
002: # Makefile for APR Samples
003: #
004: # はじめに Shift_JIS のソースコードを ORG の下に保管しておく。
005: # Usage:
006: # make -f myio_xml.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 -I/usr/include/libxml2
016: LDFLAGS=$(shell ${APR_CONFIG} --ldflags)
017: LDLIBS=$(shell ${APR_CONFIG} --libs --link-ld) $(shell ${APU_CONFIG} --libs --link-ld) -lxml2 -lxslt
018: 
019: default:	buildall
020: 
021: buildall:	kxpath1 \
022: 		kxslt1 
023: 
024: clean:
025: 	$(RM) *.o *.c *.h *~ \
026: 		kxpath1 \
027: 		kxslt1 
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: myio.h:	ORG/myio.h
038: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
039: 
040: myio.c:	ORG/myio.c
041: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
042: 
043: myio.o:	myio.h
044: 
045: myio_apr.h:	ORG/myio_apr.h
046: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
047: 
048: myio_apr.c:	ORG/myio_apr.c
049: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
050: 
051: myio_apr.o:	myio.h myio_apr.h
052: 
053: myio_xml.h:	ORG/myio_xml.h
054: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
055: 
056: myio_xml.c:	ORG/myio_xml.c
057: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
058: 
059: myio_xml.o:	myio.h myio_xml.h
060: 
061: kxpath1.c:	ORG/kxpath1.c
062: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
063: 
064: kxpath1.o:	mystab.h myio_apr.h myio.h myio_xml.h
065: 
066: 
067: kxpath1:	kxpath1.o mystab.o myio_apr.o myio.o myio_xml.o
068: 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
069: 
070: kxslt1.c:	ORG/kxslt1.c
071: 	$(ICONV) -f Shift_JIS -t EUC-JP $< > $@
072: 
073: kxslt1.o:	mystab.h myio_apr.h myio.h myio_xml.h
074: 
075: kxslt1:	kxslt1.o mystab.o myio_apr.o myio.o myio_xml.o
076: 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
Copyright (C) KAKU PROJECT (2009)KAKU PROJECT (2009)