SHELL = /bin/sh CC = gcc -Wall -Wshadow -Wcast-qual -Wwrite-strings -Wpointer-arith CFLAGS = -O PROGS = gbtou7 u7togb b5tou7 u7tob5 \ gbtou8 u8togb b5tou8 u8tob5 \ u8tou7 u7tou8 \ unitou7 u7touni unitou8 u8touni \ chtchs.to.gb_out all: $(PROGS) gbtou7: gbtou7.o utf7.o gb_in.o $(CC) -o $@ $(CFLAGS) gbtou7.o utf7.o gb_in.o u7togb: u7togb.o utf7.o gb_out.o $(CC) -o $@ $(CFLAGS) u7togb.o utf7.o gb_out.o b5tou7: b5tou7.o utf7.o b5_in.o $(CC) -o $@ $(CFLAGS) b5tou7.o utf7.o b5_in.o u7tob5: u7tob5.o utf7.o b5_out.o $(CC) -o $@ $(CFLAGS) u7tob5.o utf7.o b5_out.o gbtou8: gbtou8.o utf.o gb_in.o $(CC) -o $@ $(CFLAGS) gbtou8.o utf.o gb_in.o u8togb: u8togb.o utf.o gb_out.o $(CC) -o $@ $(CFLAGS) u8togb.o utf.o gb_out.o b5tou8: b5tou8.o utf.o b5_in.o $(CC) -o $@ $(CFLAGS) b5tou8.o utf.o b5_in.o u8tob5: u8tob5.o utf.o b5_out.o $(CC) -o $@ $(CFLAGS) u8tob5.o utf.o b5_out.o u8tou7: u8tou7.o utf7.o utf.o $(CC) -o $@ $(CFLAGS) u8tou7.o utf7.o utf.o u7tou8: u7tou8.o utf7.o utf.o $(CC) -o $@ $(CFLAGS) u7tou8.o utf7.o utf.o unitou7: unitou7.o utf7.o $(CC) -o $@ $(CFLAGS) unitou7.o utf7.o u7touni: u7touni.o utf7.o $(CC) -o $@ $(CFLAGS) u7touni.o utf7.o unitou8: unitou8.o utf.o $(CC) -o $@ $(CFLAGS) unitou8.o utf.o u8touni: u8touni.o utf.o $(CC) -o $@ $(CFLAGS) u8touni.o utf.o chtchs.to.gb_out: chtchs.to.gb_out.o gb_out.o $(CC) -o $@ $(CFLAGS) chtchs.to.gb_out.o gb_out.o utf.o clean: rm -f *.o core LOG *.lint clobber: clean rm -f $(PROGS) depend: (echo '/^#.* PUT NO STUFF BELOW/,$$d'; echo w; echo q) | ed - Makefile echo '# Dependencies generated by make depend: PUT NO STUFF BELOW' >>Makefile for file in *.c;\ do $(CC) $(MYCPPFLAGS) -E $$file |\ sed -n 's/^# [1-9][0-9]* "\([^/].*\)".*/\1/p' |\ grep -v "^$$file\$$" |\ sort -u |\ awk '{l=l " " $$1} END{print l}' l="`basename $$file .c`.o:";\ done >>Makefile # Dependencies generated by make depend: PUT NO STUFF BELOW b5_in.o: b5_out.o: b5tou7.o: utf7.h gb_in.o: gb_out.o: gbtou7.o: utf7.h u7tob5.o: utf7.h u7togb.o: utf7.h u7tou8.o: utf.h utf7.h u8tou7.o: utf.h utf7.h utf.o: utf.h utf7.o: utf7.h unitou7.o: utf7.h u7touni.o: utf7.h unitou8.o: utf.h u8touni.o: utf.h chtchs.to.gb_out.o: chtchs.to.gb_out.c