A histogram creator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

77 lines
1.7 KiB

LIBNO=1.03
NAME=binning
# Directories
prefix=/usr
exec_prefix=${prefix}
BINDIR=${exec_prefix}/bin
MANDIR=${prefix}/share/man
DATADIR=${prefix}/share
# Register variables (-ffixed-reg)
REGS= -fomit-frame-pointer
# Optimization and debugging options
OPT=-O3
# Compiler
#CC=gcc $(REGS)
CC=gcc $(REGS)
# Cross-Compiler fuer Windows-Excecutable
# WINCC=i386-mingw32msvc-gcc
WINCC=i586-mingw32msvc-gcc
# Cross-Compiler fuer ARM-Linux-Excecutable
ARMCC=arm-linux-gcc
# Preprocessor
CPP=gcc -E
# Headerfiles which should be added to the distribution
HSRC=
CSRC=
BSRC=
GSRC=
BINDIST= README.md binning
WINDIST= readme.txt $(NAME).bat $(NAME).exe contrib $(GSRC) $(BSRC) \
binning.exe
DIST= $(HSRC) $(CSRC) $(BSRC) $(GSRC) README RELEASE_NOTES Makefile \
readme.windows binning.c binning.1
all: binning
binning : binning.c
gcc -Wall -o $@ $<
strip $@
binning.exe : binning.c
$(WINCC) -DWINDOWS $(OPT) $(WINLINKFLAGS) -o $@ $< $(WINLIBS)
strip $@
install : $(NAME) $(NAME).1
install -m 755 $(NAME) $(BINDIR)/
install $(NAME).1 $(MANDIR)/man1/
uninstall :
rm -f $(BINDIR)/$(NAME)
rm -f $(MANDIR)/man1/$(NAME).1
doc-pak: README.md
mkdir -p $@
cp $+ $@/
dist : $(NAME)-$(LIBNO).tar.gz
$(NAME)-$(LIBNO).tar.gz : $(DIST)
rm -rf /tmp/$(NAME)-$(LIBNO)
mkdir /tmp/$(NAME)-$(LIBNO)
(tar cf - $(DIST))|(cd /tmp/$(NAME)-$(LIBNO); tar xpf -)
(cd /tmp; tar cf - $(NAME)-$(LIBNO)|gzip -9 > $@)
mv /tmp/$@ .
deb : $(BINDIST) doc-pak
sudo checkinstall -D --pkgname $(NAME) --pkgversion $(LIBNO) \
--maintainer kollo@users.sourceforge.net \
--backup \
--pkggroup science
clean :
rm -f *.o backup-*.tgz
distclean: clean
rm -f binning binning.exe
rm -rf doc-pak