home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-07-21 | 2.6 KB | 116 lines |
- XCOMM $XConsortium: Imakefile,v 1.8.1.2 92/11/23 18:21:13 gildea Exp $
- XCOMM
- XCOMM Copyright 1992 by the Massachusetts Institute of Technology
- XCOMM
- XCOMM Permission to use, copy, modify, distribute, and sell this software and
- XCOMM its documentation for any purpose is hereby granted without fee, provided
- XCOMM that the above copyright notice appear in all copies and that both that
- XCOMM copyright notice and this permission notice appear in supporting
- XCOMM documentation, and that the name of M.I.T. not be used in advertising or
- XCOMM publicity pertaining to distribution of the software without specific,
- XCOMM written prior permission. M.I.T. makes no representations about the
- XCOMM suitability of this software for any purpose. It is provided "as is"
- XCOMM without express or implied warranty.
- XCOMM
-
- #define DoNormalLib NormalLibPex
- #define DoSharedLib SharedLibPex
- #define DoDebugLib DebugLibPex
- #define DoProfileLib ProfileLibPex
- #include <Library.tmpl>
-
- #ifdef RsArchitecture
- REQUIREDLIBS = $(XLIBSRC)/libX11.a
- #endif
-
- #ifdef PexNativeFPFormat
- NATIVE_FP_FORMAT = PexNativeFPFormat
- FP_DEFINES = -DNATIVE_FP_FORMAT=$(NATIVE_FP_FORMAT)
- #endif
-
- #if Malloc0ReturnsNull
- ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
- #endif
-
- DEFINES = $(FP_DEFINES) $(ALLOC_DEFINES)
-
- HEADERS = PEXlib.h \
- PEXlibint.h \
- PEX.h \
- PEXproto.h \
- PEXprotost.h
-
- SRCS = pl_escape.c \
- pl_font.c \
- pl_free.c\
- pl_lut.c \
- pl_nameset.c \
- pl_oc_attr.c \
- pl_oc_dec.c \
- pl_oc_enc.c \
- pl_oc_prim.c \
- pl_oc_struct.c \
- pl_oc_util.c \
- pl_pc.c\
- pl_pick.c \
- pl_rdr.c \
- pl_sc.c \
- pl_startup.c \
- pl_struct.c \
- pl_util.c \
- pl_wks.c
-
- OBJS = pl_escape.o \
- pl_font.o \
- pl_free.o\
- pl_lut.o \
- pl_nameset.o \
- pl_oc_attr.o \
- pl_oc_dec.o \
- pl_oc_enc.o \
- pl_oc_prim.o \
- pl_oc_struct.o \
- pl_oc_util.o \
- pl_pc.o\
- pl_pick.o \
- pl_rdr.o \
- pl_sc.o \
- pl_startup.o \
- pl_struct.o \
- pl_util.o \
- pl_wks.o
-
-
- LibraryObjectRule()
-
- #if DoSharedLib
- #if DoNormalLib
- SharedLibraryTarget(PEX5,$(SOPEXREV),$(OBJS),shared,..)
- #else
- SharedLibraryTarget(PEX5,$(SOPEXREV),$(OBJS),.,.)
- #endif
- InstallSharedLibrary(PEX5,$(SOPEXREV),$(USRLIBDIR))
- #endif
- #if DoNormalLib
- NormalLibraryTarget(PEX5,$(OBJS))
- InstallLibrary(PEX5,$(USRLIBDIR))
- #endif
- #if DoProfileLib
- ProfiledLibraryTarget(PEX5,$(OBJS))
- InstallLibrary(PEX5_p,$(USRLIBDIR))
- #endif
- #if DoDebugLib
- DebuggedLibraryTarget(PEX5,$(OBJS))
- InstallLibrary(PEX5_d,$(USRLIBDIR))
- #endif
-
- LintLibraryTarget(PEX5,$(SRCS))
- InstallLintLibrary(PEX5,$(LINTLIBDIR))
-
- BuildIncludes($(HEADERS),PEX5,..)
- InstallMultiple($(HEADERS),$(INCDIR)/PEX5)
-
- DependTarget()
-
- NormalLintTarget($(SRCS))
-