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
|
#
# Generic Makefile for CDL Example tasks.
#
CDEBUGFLAGS = -g
FCFLAGS = -g
RM = rm
CDLDIR = ../
INCLUDES = -I. -I$(CDLDIR)
LDFLAGS = -L$(CDLDIR)
LIBS = -lcdl
LDLIBS =
all:: display mosaic tvmark fdisplay ftvmark
.c.o:
$(RM) -f $@
$(CC) -c $(INCLUDES) $(CFLAGS) $*.c
.f.o:
$(RM) -f $@
$(FC) -c $(FCFLAGS) $*.f
display: display.o ../libcdl.a
$(RM) -f $@
$(CC) -o $@ display.o $(LDFLAGS) $(LDOPTIONS) $(LIBS) $(LDLIBS) -lm
clean::
$(RM) -f display
mosaic: mosaic.o ../libcdl.a
$(RM) -f $@
$(CC) -o $@ mosaic.o $(LDFLAGS) $(LDOPTIONS) $(LIBS) $(LDLIBS) -lm
clean::
$(RM) -f mosaic
tvmark: tvmark.o ../libcdl.a
$(RM) -f $@
$(CC) -o $@ tvmark.o $(LDFLAGS) $(LDOPTIONS) $(LIBS) $(LDLIBS) -lm
clean::
$(RM) -f tvmark
fdisplay: fdisplay.o ../libcdl.a
f77 -o fdisplay fdisplay.o ../libcdl.a -lm $(LDLIBS)
ftvmark: ftvmark.o ../libcdl.a
f77 -o ftvmark ftvmark.o ../libcdl.a -lm $(LDLIBS)
clean::
$(RM) -f fdisplay ftvmark
depend::
lint:
$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
lint1:
$(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
clean::
$(RM) -f *.o
# -------------------------------------------------------------------------
# common rules for all Makefiles - do not edit
emptyrule::
Makefile::
-@if [ -f Makefile ]; then set -x; \
$(RM) -f Makefile.bak; $(MV) Makefile Makefile.bak; \
else exit 0; fi
$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
tags::
$(TAGS) -w *.[ch]
$(TAGS) -xw *.[ch] > TAGS
saber:
# load $(ALLDEFINES) $(SRCS)
osaber:
# load $(ALLDEFINES) $(OBJS)
# -------------------------------------------------------------------------
# empty rules for directories that do not have SUBDIRS - do not edit
install::
@echo "install in $(CURRENT_DIR) done"
install.man::
@echo "install.man in $(CURRENT_DIR) done"
Makefiles::
includes::
# -------------------------------------------------------------------------
# dependencies generated by makedepend
# DO NOT DELETE
|