home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
x
/
x11p-13.zip
/
Imakefile
< prev
next >
Wrap
Makefile
|
1991-05-09
|
2KB
|
80 lines
#ifndef X11perfcompLib
#define X11perfcompLib $(LIBDIR)/x11perfcomp
#endif
PERFLIB = X11perfcompLib
HELPERS = fillblnk perfboth perfratio
PROGRAMS = x11perf x11perf_labels x11perfcomp $(HELPERS)
HEADERS = bitmaps.h x11perf.h
SRCS = bitmaps.c do_arcs.c do_complex.c do_copyarea.c \
do_dots.c do_lines.c do_movewin.c do_rects.c \
do_segs.c do_simple.c do_tests.c do_text.c \
do_traps.c do_triangles.c do_valgc.c \
do_windows.c x11perf.c
OBJS = bitmaps.o do_arcs.o do_complex.o do_copyarea.o \
do_dots.o do_lines.o do_movewin.o do_rects.o \
do_segs.o do_simple.o do_tests.o do_text.o \
do_traps.o do_triangles.o do_valgc.o \
do_windows.o x11perf.o
#ifdef TAR
LOCAL_LIBRARIES =
DEPLIBS =
SYS_LIBRARIES = -lXext -lX11 -lm
#else
LOCAL_LIBRARIES = $(XLIB)
DEPLIBS = $(DEPXLIB)
SYS_LIBRARIES = -lm
#endif
# DEFINES = -DVERSION1.3 -DMITSHM -DKANJI
DEFINES = -DVERSION1.3 -DMITSHM
ComplexProgramTarget(x11perf)
all:: x11perf_labels x11perfcomp $(HELPERS)
install:: $(PERFLIB)
CppScriptTarget(x11perfcomp,x11pcomp.cpp,-DLIBPATH=$(PERFLIB),$(ICONFIGFILE))
CppScriptTarget(fillblnk,fillblnk.cpp, /**/, /**/)
CppScriptTarget(perfboth,perfboth.cpp, /**/, /**/)
CppScriptTarget(perfratio,perfratio.cpp, /**/, /**/)
InstallProgram(x11perfcomp,$(BINDIR))
InstallProgram(perfboth,$(PERFLIB))
InstallProgram(perfratio,$(PERFLIB))
InstallProgram(fillblnk,$(PERFLIB))
InstallManPage(x11perfcomp.man,$(MANDIR))
x11perf_labels: x11perf
./x11perf -labels -all > x11perf_labels
# These guys depend upon $DEFINES from Imakefile
do_copyarea.o: Imakefile
do_tests.o: Imakefile
do_text.o: Imakefile
clean::
$(RM) $(PROGRAMS)
$(PERFLIB):
$(MKDIRHIER) $(PERFLIB)
tarMakefile:
$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) -DTAR
tar: $(DEPEND)
-rm -f x11perf.tar x11perf.tar.Z
mv Makefile Makefile.bak
make tarMakefile -f Makefile.bak
$(DEPEND) -s "# DO NOT DELETE" -- -- $(SRCS)
tar chf x11perf.tar Imakefile Makefile $(HEADERS) $(SRCS) \
x11perf_labels *.man *.cpp $(HELPERS) RCS \
link.com link.options make.com;
mv Makefile.bak Makefile
compress x11perf.tar