home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Enlightenment
/
imlib_DR-0.2.tar.gz
/
imlib_DR-0.2.tar
/
imlib
/
Imakefile
< prev
next >
Wrap
Makefile
|
1997-05-08
|
2KB
|
76 lines
/* Comment this out if you want to install config files
* under /etc/ instead of /etc/X11/Im/ */
/*#define UseEtcX11 /* */
/* You shouldn't have to change anything below this line. */
/* ---------------------------------------------------------------- */
LIBNAME=Im
LIBREV=1.0
#ifdef UseEtcX11
ETCDIR=/etc/X11/$(LIBNAME)
#else
ETCDIR=/etc
#endif /* def UseEtcX11 */
CNFDIR = $(ETCDIR)
DEFINES = -DSYSTEM_IMRC=\"$(ETCDIR)/imrc\"
SRCS = load.c rend.c misc.c colors.c
OBJS = load.o rend.o misc.o colors.o
HDRS = imlib.h
CCOPTIONS = -ffast-math
INCLUDES = -I.
SYS_LIBRARIES = $(XLIB)
/*#ifdef LinuxArchitecture*/
SHOBJDIR = ./shobj
SHOBJS = $(SHOBJDIR)/load.o $(SHOBJDIR)/rend.o $(SHOBJDIR)/misc.o \
$(SHOBJDIR)/colors.o
SHCFLAGS = -fPIC
SharedLibraryTarget($(LIBNAME),$(LIBREV),$(SHOBJS),.,.)
InstallSharedLibrary($(LIBNAME),$(LIBREV),$(SHLIBDIR))
$(SHOBJDIR)/%.o: %.c
$(CC) $(CFLAGS) $(SHCFLAGS) -o $@ -c $<
includes::
if [ ! -d $(SHOBJDIR) ]; then $(MKDIRHIER) $(SHOBJDIR); fi
clean::
$(RM) $(SHOBJS)
rm -f libIm.so.1
rm -f Makefile
rm -rf sys_conf
if [ -d $(SHOBJDIR) ]; then rmdir $(SHOBJDIR); fi
/*#endif */
/* LinuxArchitecture */
NormalLibraryTarget($(LIBNAME),$(OBJS))
InstallLibrary($(LIBNAME),$(USRLIBDIR))
InstallMultiple($(HDRS),$(INCROOT)/X11)
/* Install configuration files in the right place. */
CNFSRC = ./sys_conf
CNFS = $(CNFSRC)/imrc
PALS = $(CNFSRC)/im_palette.pal
CNFFLAGS = -m 0644 -o root -g root
InstallMultipleFlags($(CNFS) $(PALS),$(CNFDIR),$(CNFFLAGS))
DependTarget()
/* This makes the configuration files
* look for palettes in the right place. */
includes::
cp -rf sys_conf.dist sys_conf
@set -x; \
for i in $(CNFS); do \
mv -f $$i $$i~; \
cat $$i~ | sed -e 's#@ETCDIR@#$(ETCDIR)#g' >$$i; \
done