| # Makefile for the second extended file system utility functions |
| # |
| # Copyright (C) 1993 Remy Card (card@masi.ibp.fr) |
| # |
| # This file can be redistributed under the terms of the GNU General |
| # Public License |
| |
| srcdir = @srcdir@ |
| top_srcdir = @top_srcdir@ |
| VPATH = @srcdir@ |
| top_builddir = ../.. |
| my_dir = lib/e2p |
| INSTALL = @INSTALL@ |
| |
| @MCONFIG@ |
| |
| all:: |
| |
| OBJS= feature.o fgetflags.o fsetflags.o fgetversion.o fsetversion.o \ |
| getflags.o getversion.o iod.o ls.o pe.o pf.o ps.o \ |
| setflags.o setversion.o uuid.o |
| |
| SRCS= $(srcdir)/feature.c $(srcdir)/fgetflags.c \ |
| $(srcdir)/fsetflags.c $(srcdir)/fgetversion.c \ |
| $(srcdir)/fsetversion.c $(srcdir)/getflags.c \ |
| $(srcdir)/getversion.c $(srcdir)/iod.c $(srcdir)/ls.c \ |
| $(srcdir)/pe.c $(srcdir)/pf.c $(srcdir)/ps.c \ |
| $(srcdir)/setflags.c $(srcdir)/setversion.c \ |
| $(srcdir)/uuid.c |
| |
| HFILES= e2p.h |
| |
| LIBRARY= libe2p |
| LIBDIR= e2p |
| |
| DLL_ADDRESS = 0x66980000 |
| DLL_JUMPSIZE = 0x1000 |
| DLL_GOTSIZE = 0x1000 |
| DLL_VERSION = 1.3 |
| DLL_IMAGE = libe2p |
| DLL_STUB = libe2p |
| DLL_MYDIR = e2p |
| DLL_INSTALL_DIR = $(root_libdir) |
| |
| ELF_VERSION = 2.3 |
| ELF_SO_VERSION = 2 |
| ELF_IMAGE = libe2p |
| ELF_MYDIR = e2p |
| ELF_INSTALL_DIR = $(root_libdir) |
| ELF_OTHER_LIBS = -lc |
| |
| BSDLIB_VERSION = 2.1 |
| BSDLIB_IMAGE = libe2p |
| BSDLIB_MYDIR = e2p |
| BSDLIB_INSTALL_DIR = $(root_libdir) |
| |
| @MAKEFILE_LIBRARY@ |
| @MAKEFILE_DLL@ |
| @MAKEFILE_ELF@ |
| @MAKEFILE_BSDLIB@ |
| @MAKEFILE_PROFILE@ |
| @MAKEFILE_CHECKER@ |
| |
| .c.o: |
| $(CC) $(ALL_CFLAGS) -c $< -o $@ |
| @PROFILE_CMT@ $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $< |
| @CHECKER_CMT@ $(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $< |
| @DLL_CMT@ (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(ALL_CFLAGS) \ |
| @DLL_CMT@ -o jump/$*.o -c $<) |
| @ELF_CMT@ $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $< |
| @BSDLIB_CMT@ $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $< |
| |
| installdirs:: |
| $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir) \ |
| $(DESTDIR)$(includedir)/e2p |
| |
| install:: all installdirs |
| $(INSTALL_DATA) libe2p.a $(DESTDIR)$(libdir)/libe2p.a |
| $(CHMOD) 644 $(DESTDIR)$(libdir)/libe2p.a |
| -$(RANLIB) $(DESTDIR)$(libdir)/libe2p.a |
| $(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/libe2p.a |
| set -e; for i in $(HFILES); do \ |
| $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/e2p/$$i; \ |
| done |
| |
| uninstall:: |
| $(RM) -f $(DESTDIR)$(libdir)/libe2p.a |
| $(RM) -rf $(DESTDIR)$(includedir)/e2p |
| |
| clean:: |
| $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/* |
| $(RM) -f ../libe2p.a ../libe2p_p.a |
| mostlyclean:: clean |
| distclean:: clean |
| $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old |
| |
| # +++ Dependency line eater +++ |
| # |
| # Makefile dependencies follow. This must be the last section in |
| # the Makefile.in file |
| # |
| feature.o: $(srcdir)/feature.c $(srcdir)/e2p.h |
| fgetflags.o: $(srcdir)/fgetflags.c $(srcdir)/e2p.h |
| fsetflags.o: $(srcdir)/fsetflags.c $(srcdir)/e2p.h |
| fgetversion.o: $(srcdir)/fgetversion.c $(srcdir)/e2p.h |
| fsetversion.o: $(srcdir)/fsetversion.c $(srcdir)/e2p.h |
| getflags.o: $(srcdir)/getflags.c $(srcdir)/e2p.h |
| getversion.o: $(srcdir)/getversion.c $(srcdir)/e2p.h |
| iod.o: $(srcdir)/iod.c $(srcdir)/e2p.h |
| ls.o: $(srcdir)/ls.c $(srcdir)/e2p.h |
| pe.o: $(srcdir)/pe.c $(srcdir)/e2p.h |
| pf.o: $(srcdir)/pf.c $(srcdir)/e2p.h |
| ps.o: $(srcdir)/ps.c $(srcdir)/e2p.h |
| setflags.o: $(srcdir)/setflags.c $(srcdir)/e2p.h |
| setversion.o: $(srcdir)/setversion.c $(srcdir)/e2p.h |
| uuid.o: $(srcdir)/uuid.c $(srcdir)/e2p.h |