home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-12-12 | 2.3 KB | 79 lines |
- #############################################################################
-
- # Which compiler to use?
-
- # cc:
- CC = cc
- FFLAGS = -O
-
- # gcc:
- # CC = gcc
- # FFLAGS = -traditional -O2
-
- #############################################################################
-
- # If your Xlib is Release 3, uncomment this:
-
- # RDEFINES = -DX11R3
-
- #############################################################################
-
- # This is where the library and header files will go, if you use
- # `make install.lib' to install them. Change as required:
-
- THELIBDIR = ./lib
- THEINCDIR = ./include
-
- #############################################################################
-
- # This is where the manual pages will go:
- # (you'll want something ending in man/man3 since the manual page
- # for `foo' will be installed as `foo.3')
-
- THEMANDIR = ./man/man3
-
- #############################################################################
-
- # OK, that should do it.
-
- #############################################################################
-
- OBJS = example.o rotated.o
- DEPLIBS = $(USRLIBDIR)/libX11.a
- LOCAL_LIBRARIES = -lX11
- CFLAGS = $(FFLAGS) $(RDEFINES)
- ComplexProgramTarget(example)
-
- lib: rotated.o
- $(RM) libXrot.a
- $(AR) libXrot.a rotated.o
- ranlib libXrot.a
-
- install-lib: rotated.o
- $(RM) libXrot.a
- $(AR) libXrot.a rotated.o
- ranlib libXrot.a
- @if [ -d $(THELIBDIR) ]; then set +x; \
- else (set -x; $(MKDIRHIER) $(THELIBDIR)); fi
- $(INSTALL) -c libXrot.a $(THELIBDIR)
- @if [ -d $(THEINCDIR) ]; then set +x; \
- else (set -x; $(MKDIRHIER) $(THEINCDIR)); fi
- $(INSTALL) -c rotated.h $(THEINCDIR)
-
- install-man:
- @if [ -d $(THEMANDIR) ]; then set +x; \
- else (set -x; $(MKDIRHIER) $(THEMANDIR)); fi
- $(CP) man/XRotDrawAlignedString.3 $(THEMANDIR)/XRotDrawAlignedImageString.3
- $(CP) man/XRotDrawAlignedString.3 $(THEMANDIR)/XRotDrawAlignedString.3
- $(CP) man/XRotDrawString.3 $(THEMANDIR)/XRotDrawString.3
- $(CP) man/XRotDrawString.3 $(THEMANDIR)/XRotDrawImageString.3
- $(CP) man/XRotLoadFont.3 $(THEMANDIR)/XRotLoadFont.3
- $(CP) man/XRotLoadFont.3 $(THEMANDIR)/XRotUnloadFont.3
- $(CP) man/XRotLoadFont.3 $(THEMANDIR)/XRotVersion.3
- $(CP) man/XRotLoadFont.3 $(THEMANDIR)/XRotTextWidth.3
- $(CP) man/xvertext.3 $(THEMANDIR)/xvertext.3
-
- $(OBJS): rotated.h
-
-
-