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
|
#
# Copyright (c) 1998, Guylhem AZNAR <guylhem@oeil.qc.ca>
#
@MAKEFILEDEFINES@
all: $(PROG)
install: install.bin install.man
install.bin: $(PROG)
$(STRIP) $(PROG)
$(INSTALL_PROGRAM) $(PROG) $(AFTER_BIN_DIR)
install.man:
$(INSTALL_DATA) $(PROG).man $(AFTER_MAN_DIR)/$(PROG).1x
uninstall:
$(RMF) $(AFTER_BIN_DIR)/$(PROG)
$(RMF) $(AFTER_MAN_DIR)/$(PROG).1x
clean:
$(RMF) $(PROG) *.o *~ *% *.bak \#* core
distclean:
$(RMF) $(PROG) config.cache config.log config.status Makefile.bak Makefile config.h configure.h *.o *~ *% *.bak \#* core autoconf/Makefile.common autoconf/Makefile.common.lib autoconf/Makefile.defines
indent:
SRCS=`echo "$(OBJS) " | sed "s/.o /.c /g"`; \
for i in $$SRCS; do \
if (indent < $$i > /tmp/$$i); then \
mv /tmp/$$i $$i; \
fi; \
done
$(PROG): $(OBJS)
$(CC) $(OBJS) $(LIBRARIES) $(EXTRA_LIBRARIES) -o $(@)
.c.o:
$(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c
#
# End of Make.common
#
|