blob: 2e8da282f897a155de3963f2a2f063372d0b4eef [file] [log] [blame]
# 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 = ../..
INSTALL = @INSTALL@
@MCONFIG@
all::
OBJS= 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
SRCS= $(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
LIBRARY= libe2p
LIBDIR= e2p
DLL_ADDRESS = 0x66980000
DLL_JUMPSIZE = 0x1000
DLL_GOTSIZE = 0x1000
DLL_VERSION = 1.2
DLL_IMAGE = libe2p
DLL_STUB = libe2p
DLL_MYDIR = e2p
DLL_INSTALL_DIR = $(libdir)
ELF_VERSION = 2.1
ELF_IMAGE = libe2p
ELF_MYDIR = e2p
ELF_INSTALL_DIR = $(libdir)
BSDLIB_VERSION = 2.1
BSDLIB_IMAGE = libe2p
BSDLIB_MYDIR = e2p
BSDLIB_INSTALL_DIR = $(libdir)
@MAKEFILE_LIBRARY@
@MAKEFILE_DLL@
@MAKEFILE_ELF@
@MAKEFILE_BSDLIB@
@MAKEFILE_PROFILE@
@MAKEFILE_CHECKER@
.c.o:
$(CC) $(CFLAGS) -c $< -o $@
@PROFILE_CMT@ $(CC) $(CFLAGS) -pg -o profiled/$*.o -c $<
@CHECKER_CMT@ $(CC) $(CFLAGS) -checker -g -o checker/$*.o -c $<
@DLL_CMT@ (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(CFLAGS) \
@DLL_CMT@ -o jump/$*.o -c $<)
@ELF_CMT@ $(CC) $(CFLAGS) -fPIC -o elfshared/$*.o -c $<
@BSDLIB_CMT@ $(CC) $(CFLAGS) -fpic -o pic/$*.o -c $<
installdirs::
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(ulibdir)
install:: all installdirs
$(INSTALL_DATA) libe2p.a $(DESTDIR)$(ulibdir)/libe2p.a
$(CHMOD) 644 $(DESTDIR)$(ulibdir)/libe2p.a
-$(RANLIB) $(DESTDIR)$(ulibdir)/libe2p.a
$(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/libe2p.a
uninstall::
$(RM) -f $(ulibdir)/libe2p.a
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
# +++ Dependency line eater +++
#
# Makefile dependencies follow. This must be the last section in
# the Makefile.in file
#
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 \