92 lines
2.3 KiB
Makefile
92 lines
2.3 KiB
Makefile
|
# ----------------------------------------------------
|
||
|
# this is the Makefile for the 'dumpgdbm' utility
|
||
|
# ----------------------------------------------------
|
||
|
#
|
||
|
# Pour plus d'information, le mieux, c'est de m'ecrire
|
||
|
# <oulala@chez.com> ou de me faire parvenir une caisse
|
||
|
# de vin australien. Ou chilien, ils font du bon vin
|
||
|
# au Chili: du Cabernet-Sauvignon de premiere bourre.
|
||
|
#
|
||
|
# ----------------------------------------------------
|
||
|
#
|
||
|
|
||
|
OU_LE_METTRE = /usr/local
|
||
|
|
||
|
#
|
||
|
# Positionner TRACE a 42 pour avoir un binaire
|
||
|
# qui raconte sa vie, son oeuvre, ses trolls...
|
||
|
#
|
||
|
# you can safely remove the -g (debug) options.
|
||
|
#
|
||
|
|
||
|
TRACE = 0
|
||
|
C_OPT = -Wall -DTRACE=$(TRACE)
|
||
|
|
||
|
# ----------------------------------------------------
|
||
|
|
||
|
all: dumpgdbm cleargdbm
|
||
|
|
||
|
dump_funcs.o: dump_funcs.c dumpgdbm.h Makefile
|
||
|
cc $(C_OPT) -c dump_funcs.c
|
||
|
|
||
|
dumpgdbm.o: dumpgdbm.c dumpgdbm.h Makefile
|
||
|
cc $(C_OPT) -c dumpgdbm.c
|
||
|
|
||
|
dumpgdbm: dumpgdbm.o dump_funcs.o Makefile
|
||
|
cc $(C_OPT) dumpgdbm.o dump_funcs.o -lgdbm -lreadline -ltermcap -o dumpgdbm
|
||
|
|
||
|
exemple.gdbm: exemple.pl Makefile
|
||
|
-rm exemple.gdbm
|
||
|
perl ./exemple.pl
|
||
|
|
||
|
cleargdbm: cleargdbm.c Makefile
|
||
|
cc $(C_OPT) cleargdbm.c -lgdbm -o cleargdbm
|
||
|
|
||
|
love:
|
||
|
@echo "--------- No War --------"
|
||
|
@echo "install -> " $(OU_LE_METTRE)/
|
||
|
@echo "trace -> " $(TRACE)
|
||
|
|
||
|
#
|
||
|
# Bon, OK, ma methode d'installation est rudimentaire,
|
||
|
# mais fallait lire la doc avant, si votre systeme est
|
||
|
# tout detruit, c'est pas de ma faute. Ymmv.
|
||
|
#
|
||
|
|
||
|
install:
|
||
|
cp dumpgdbm dumpgdbm.install
|
||
|
strip dumpgdbm.install
|
||
|
cp dumpgdbm.install $(OU_LE_METTRE)/bin/dumpgdbm
|
||
|
rm dumpgdbm.install
|
||
|
cp dumpgdbm.1 $(OU_LE_METTRE)/man/man1/dumpgdbm.1
|
||
|
cp cleargdbm.1 $(OU_LE_METTRE)/man/man1/cleargdbm.1
|
||
|
@echo
|
||
|
@echo "configuration modified, you have to reboot now."
|
||
|
@echo " [YES] [NO] [MAY BE] [DON'T KNOW]"
|
||
|
@echo
|
||
|
@sleep 1
|
||
|
@echo "arf, arf, trop drole, on s'y croirait..."
|
||
|
@echo
|
||
|
|
||
|
#
|
||
|
# Rah, mais qu'est ce qu'est Gruiik, ce truc !
|
||
|
#
|
||
|
|
||
|
tarball: dumpgdbm.c dumpgdbm.1 Makefile README TODO MANIFEST BUGS \
|
||
|
cleargdbm.c cleargdbm.1 INSTALL dump_funcs.c \
|
||
|
dumpgdbm.h exemple.pl
|
||
|
( cd .. ; \
|
||
|
tar zcvf dumpgdbm.tar.gz `sed 's/^/DumpGDBM\//' DumpGDBM/MANIFEST` )
|
||
|
date >> tarball
|
||
|
|
||
|
|
||
|
#
|
||
|
# merci de votre attention.
|
||
|
#
|
||
|
# http://la.buvette.org/ego/
|
||
|
# http://krabulator.free.fr/devel/
|
||
|
#
|
||
|
#
|
||
|
#-- end of Makefile --
|
||
|
|