1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
#
# Makefile for widgets and example programs.
#
# Copyright 1999-2000 by Michael Sweet.
#
#
# Programs...
#
AR = @AR@
CC = @CC@
CXX = @CXX@
RANLIB = @RANLIB@
RM = @RM@ -f
SHELL = /bin/sh
#
# Program options...
#
ARFLAGS = crvs
CFLAGS = @CFLAGS@ @DEFS@
CXXFLAGS = @CXXFLAGS@ @DEFS@
LIBS = @LIBS@ -lXext -lX11
LDFLAGS = @LDFLAGS@
#
# Rules...
#
.SILENT:
.SUFFIXES: .c .cxx .h .o
.c.o:
echo Compiling $<...
$(CC) $(CFLAGS) -c $<
.cxx.o:
echo Compiling $<...
$(CXX) $(CXXFLAGS) -c $<
#
# Make all targets...
#
all: libespws.a testfile testhelp flsurf
#
# Remove object and target files...
#
clean:
$(RM) *.o
$(RM) libespws.a
$(RM) testfile
$(RM) testhelp
$(RM) flsurf
#
# Make the file chooser widget library.
#
LIBOBJS = FileBrowser.o FileChooser.o FileChooser2.o FileIcon.o \
FileInput.o Fl_Wizard.o HelpApp.o HelpApp2.o HelpDialog.o \
HelpView.o
libespws.a: $(LIBOBJS)
echo Building library $@...
$(RM) libespws.a
$(AR) $(ARFLAGS) libespws.a $(LIBOBJS)
$(RANLIB) libespws.a
FileBrowser.o: FileBrowser.h FileIcon.h
FileChooser2.o: FileBrowser.h FileChooser.h FileIcon.h FileInput.h
FileChooser.o: FileBrowser.h FileChooser.h FileIcon.h FileInput.h
FileIcon.o: FileIcon.h
FileInput.o: FileInput.h
Fl_Wizard.o: Fl_Wizard.h
HelpApp.o: HelpApp.h HelpView.h
HelpApp2.o: HelpApp.h HelpView.h
HelpDialog.o: HelpDialog.h HelpView.h
HelpView.o: HelpView.h
#
# Make the file chooser test program.
#
testfile: libespws.a testfile.o
echo Linking $@...
$(CXX) $(LDFLAGS) -o testfile testfile.o libespws.a $(LIBS)
testfile.o: FileBrowser.h FileChooser.h FileIcon.h FileInput.h
#
# Make the help test program.
#
testhelp: libespws.a testhelp.o
echo Linking $@...
$(CXX) $(LDFLAGS) -o testhelp testhelp.o libespws.a $(LIBS)
testhelp.o: HelpDialog.h HelpView.h
#
# Make the flsurf program.
#
flsurf: libespws.a flsurf.o
echo Linking $@...
$(CXX) $(LDFLAGS) -o flsurf flsurf.o libespws.a $(LIBS)
flsurf.o: HelpApp.h HelpView.h
#
# End of Makefile.
#
|