Check-in Number:
|
364 | |
Date: |
2001-Jan-26 11:41:39 (local)
2001-Jan-26 10:41:39 (UTC) |
User: | rse |
Branch: | |
Comment: |
Add DESTDIR support |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/sfio/Makefile.in -> 1.9
*** /dev/null Sat Nov 23 02:25:24 2024
--- - Sat Nov 23 02:25:35 2024
***************
*** 0 ****
--- 1,155 ----
+ ##
+ ## Sfio top-level Makefile
+ ##
+
+ PACKAGE_VER = 1.0b4
+ LIBTOOL_VER = 10:0
+
+ top_builddir = @top_srcdir@
+ top_srcdir = @top_srcdir@
+
+ SHELL = /bin/sh
+ CC = @CC@
+ CFLAGS = @CFLAGS@
+ CCFLAGS = $(CFLAGS) -Isfio -Isfio_c
+ LDFLAGS = @LDFLAGS@
+ RM = rm -f
+ LIBTOOL = @LIBTOOL@
+ SHTOOL = @SHTOOL@
+ INSTALL = $(SHTOOL) install
+ MKDIR = $(SHTOOL) mkdir -f -p -m 755
+
+ STDIO_SRC = @STDIO_SRC@
+ STDIO_BIN = @STDIO_BIN@
+ LIBSTDIO_LA = @LIBSTDIO_LA@
+ O_STDIO_S = @O_STDIO_S@
+ D_STDIO_S = @D_STDIO_S@
+ D_STDIO_B = @D_STDIO_B@
+
+ DESTDIR =
+
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+ bindir = @bindir@
+ libdir = @libdir@
+ includedir = @includedir@
+ mandir = @mandir@
+
+ # sfio standard library
+ SFIO= sfio/sfclose.lo sfio/sfclrlock.lo sfio/sfcvt.lo sfio/sfdisc.lo sfio/sfdlen.lo sfio/sfexcept.lo \
+ sfio/sfextern.lo sfio/sffilbuf.lo sfio/sfflsbuf.lo sfio/sfprints.lo sfio/sfgetd.lo sfio/sfgetl.lo \
+ sfio/sfgetr.lo sfio/sfgetu.lo sfio/sfllen.lo sfio/sfmode.lo sfio/sfmove.lo sfio/sfnew.lo \
+ sfio/sfnotify.lo sfio/sfnputc.lo sfio/sfopen.lo sfio/sfpkrd.lo sfio/sfpool.lo sfio/sfpopen.lo \
+ sfio/sfprintf.lo sfio/sfputd.lo sfio/sfputl.lo sfio/sfputr.lo sfio/sfputu.lo sfio/sfrd.lo sfio/sfread.lo \
+ sfio/sfscanf.lo sfio/sfseek.lo sfio/sfset.lo sfio/sfsetbuf.lo sfio/sfsetfd.lo sfio/sfsize.lo sfio/sfsk.lo \
+ sfio/sfstack.lo sfio/sfstrtod.lo sfio/sfsync.lo sfio/sftable.lo sfio/sftell.lo sfio/sftmp.lo \
+ sfio/sfungetc.lo sfio/sfvprintf.lo sfio/sfvscanf.lo sfio/sfwr.lo sfio/sfwrite.lo sfio/sfexit.lo \
+ sfio/sfpurge.lo sfio/sfpoll.lo sfio/sfreserve.lo sfio/sfswap.lo sfio/sfraise.lo
+
+ # sfio function versions of macros
+ SFIO_F= sfio_f/_sfclrerr.lo sfio_f/_sfeof.lo sfio_f/_sferror.lo \
+ sfio_f/_sffileno.lo sfio_f/_sfgetc.lo sfio_f/_sfgetl.lo \
+ sfio_f/_sfgetu.lo sfio_f/_sfputc.lo sfio_f/_sfslen.lo \
+ sfio_f/_sfulen.lo sfio_f/_sfstacked.lo sfio_f/_sfvalue.lo
+
+ # sfio IO disciplines
+ SFIO_DC=sfio_dc/sfdcdio.lo sfio_dc/sfdcdos.lo sfio_dc/sfdcfilter.lo \
+ sfio_dc/sfdclzw.lo sfio_dc/sfdcseekable.lo sfio_dc/sfdcslow.lo \
+ sfio_dc/sfdcsubstream.lo sfio_dc/sfdctee.lo sfio_dc/sfdcunion.lo
+
+ # stdio source compatibility code
+ STDIO_S=stdio_s/stdgets.lo stdio_s/stdopen.lo stdio_s/stdprintf.lo \
+ stdio_s/stdscanf.lo stdio_s/stdsprintf.lo stdio_s/stdvbuf.lo \
+ stdio_s/stdgetc.lo stdio_s/stdputc.lo
+
+ # stdio binary compatibility code
+ STDIO_B=stdio_b/doprnt.lo stdio_b/doscan.lo stdio_b/fclose.lo stdio_b/fdopen.lo stdio_b/fflush.lo stdio_b/fgetc.lo stdio_b/fgets.lo stdio_b/filbuf.lo \
+ stdio_b/flsbuf.lo stdio_b/fopen.lo stdio_b/fprintf.lo stdio_b/fputc.lo stdio_b/fputs.lo stdio_b/fread.lo stdio_b/freopen.lo stdio_b/fscanf.lo \
+ stdio_b/fseek.lo stdio_b/ftell.lo stdio_b/fwrite.lo stdio_b/getc.lo stdio_b/getchar.lo stdio_b/gets.lo stdio_b/getw.lo stdio_b/pclose.lo stdio_b/popen.lo \
+ stdio_b/printf.lo stdio_b/putc.lo stdio_b/putchar.lo stdio_b/puts.lo stdio_b/putw.lo stdio_b/rewind.lo stdio_b/scanf.lo stdio_b/setbuf.lo stdio_b/setbuffer.lo \
+ stdio_b/setlinebuf.lo stdio_b/setvbuf.lo stdio_b/sprintf.lo stdio_b/sscanf.lo stdio_b/stdextern.lo stdio_b/stdstream.lo \
+ stdio_b/tmpfile.lo stdio_b/ungetc.lo stdio_b/vfprintf.lo stdio_b/vfscanf.lo stdio_b/vprintf.lo stdio_b/vscanf.lo stdio_b/vsprintf.lo \
+ stdio_b/vsscanf.lo stdio_b/fileno.lo stdio_b/feof.lo stdio_b/ferror.lo stdio_b/clearerr.lo stdio_b/fpurge.lo stdio_b/fsetpos.lo stdio_b/fgetpos.lo \
+ stdio_b/cleanup.lo stdio_b/vsnprintf.lo stdio_b/snprintf.lo
+
+ SUBDIRS = sfio sfio_f sfio_dc $(D_STDIO_S) $(D_STDIO_B)
+
+ .SUFFIXES:
+ .SUFFIXES: .c .o .lo
+ .c.o:
+ $(CC) -c $(CCFLAGS) $*.c
+ .c.lo:
+ $(LIBTOOL) --mode=compile --quiet $(CC) -c $(CCFLAGS) $<
+
+ all: subdirs_all libsfio.la $(LIBSTDIO_LA)
+
+ subdirs_all:
+ @$(MAKE) $(MFLAGS) subdirs TARGET=all
+ subdirs_clean:
+ @$(MAKE) $(MFLAGS) subdirs TARGET=clean
+ subdirs_distclean:
+ @$(MAKE) $(MFLAGS) subdirs TARGET=distclean
+ subdirs:
+ @for subdir in $(SUBDIRS); do \
+ echo "===> $$subdir ($(TARGET))"; \
+ (cd $$subdir; $(MAKE) $(MFLAGS) $(TARGET) || exit 1) || exit 1; \
+ echo "<=== $$subdir"; \
+ done
+
+ libsfio.la: $(SFIO) $(SFIO_F) $(SFIO_DC) $(O_STDIO_S)
+ $(LIBTOOL) --mode=link --quiet $(CC) -o libsfio.la \
+ $(SFIO) $(SFIO_F) $(SFIO_DC) $(O_STDIO_S) \
+ -rpath $(libdir) -version-info $(LIBTOOL_VER)
+
+ libstdio.la: $(STDIO_B)
+ $(LIBTOOL) --mode=link --quiet $(CC) -o libstdio.la \
+ $(STDIO_B) \
+ -rpath $(libdir) -version-info $(LIBTOOL_VER)
+
+ check: test
+ test:
+ @echo "Running Tests:"; \
+ cd sfio_t && $(MAKE) $(MFLAGS) test && cd ..
+
+ install: all
+ $(MKDIR) $(DESTDIR)$(bindir)
+ $(MKDIR) $(DESTDIR)$(includedir)
+ $(MKDIR) $(DESTDIR)$(libdir)
+ $(MKDIR) $(DESTDIR)$(mandir)/man3
+ $(INSTALL) -c -m 755 sfio-config $(DESTDIR)$(bindir)/sfio-config
+ @echo "$(INSTALL) -c -m 644 sfio/sfio.h $(DESTDIR)$(includedir)/sfio.h"; \
+ sed -e 's;cfg_common\.h;sfio_c.h;' <sfio/sfio.h >.tmp; \
+ $(INSTALL) -c -m 644 .tmp $(DESTDIR)$(includedir)/sfio.h; rm -f .tmp
+ $(INSTALL) -c -m 644 sfio_c/cfg_common.h $(DESTDIR)$(includedir)/sfio_c.h
+ $(INSTALL) -c -m 644 sfio/sfio_t.h $(DESTDIR)$(includedir)/sfio_t.h
+ @$(LIBTOOL) --mode=install $(INSTALL) -c -m 644 libsfio.la $(DESTDIR)$(libdir)/libsfio.la
+ @if [ ".$(STDIO_SRC)" = .yes ]; then \
+ echo "$(INSTALL) -c -m 644 stdio_s/stdio.h $(DESTDIR)$(includedir)/stdio.h"; \
+ $(INSTALL) -c -m 644 stdio_s/stdio.h $(DESTDIR)$(includedir)/stdio.h; \
+ fi
+ @if [ ".$(STDIO_BIN)" = .yes ]; then \
+ $(LIBTOOL) --mode=install $(INSTALL) -c -m 644 libstdio.la $(DESTDIR)$(libdir)/libstdio.la; \
+ fi
+ $(INSTALL) -c -m 644 sfio.3 $(DESTDIR)$(mandir)/man3/sfio.3
+
+ clean: subdirs_clean
+ $(RM) libsfio.la libstdio.la
+ $(RM) -r .libs
+
+ distclean: subdirs_distclean
+ @echo "===> sfio_c"; \
+ cd sfio_c && $(MAKE) $(MFLAGS) distclean && cd ..; \
+ echo "<=== sfio_c"
+ $(RM) libsfio.la libstdio.la
+ $(RM) -r .libs
+ $(RM) libtool
+ $(RM) sfio-config
+ $(RM) config.status config.log config.cache
+ $(RM) Makefile
+
+ dist: distclean
+ @$(SHTOOL) fixperm -v .; \
+ $(SHTOOL) tarball -o ossp-sfio-$(PACKAGE_VER).tar.gz \
+ -d ossp-sfio-$(PACKAGE_VER) -u ossp -g sfio \
+ -e 'CVS,\.cvsignore,\.[ao],^\.' -c 'gzip --best' .
+
|
|