CC=gcc
OPT=
OPT=-DAIX
LDOPT=
all:
cc -fno-common -c -o chain.o chain.c
cc -fno-common -c -o inifile.o inifile.c
cc -fno-common -c -o filedb.o filedb.c
cc -fno-common -o watchd watchd.c inifile.o chain.o filedb.o
debug:
cc -fno-common -g -c -o inifile.o inifile.c
cc -fno-common -g -c -o chain.o chain.c
cc -fno-common -DDEBUG -g -c -o filedb.o filedb.c
gcc $(LDOPT) -g -DDEBUG -DAIX -o watchd watchd.c inifile.o chain.o filedb.o
install: all
cp watchd $(PREFIX)/usr/local/bin
chmod a+x ./installconf.sh
./installconf.sh watchd.conf /etc/watchd.conf
doc: doc/watchfolder.dvi
cd doc
latex watchfolder.tex
dvips watchfolder.dvi
clean:
rm -f *.o watchd depp
syntax highlighted by Code2HTML, v. 0.9.1