-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.original
47 lines (35 loc) · 1.08 KB
/
Makefile.original
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
# Unix makefile for JBIG-KIT
# Select an ANSI/ISO C compiler here, GNU gcc is recommended
CC = $(CROSS)gcc
AR = $(CROSS)ar
LD = $(CROSS)ld
RANLIB = $(CROSS)ranlib
# Options for the compiler: A high optimization level is suggested
CFLAGS = -O2 -W -Wno-unused-result $(XCFLAGS)
# CFLAGS = -O -g -W -Wall -Wno-unused-result -ansi -pedantic # -DDEBUG
export CC CFLAGS
VERSION=2.1
all: lib pbm
@echo "Enter 'make test' in order to start some automatic tests."
lib:
cd libjbig && $(MAKE) -e
pbm: lib
cd pbmtools && $(MAKE) -e
test: lib pbm
cd libjbig && $(MAKE) test
cd pbmtools && $(MAKE) test
analyze:
cd libjbig && $(MAKE) analyze
cd pbmtools && $(MAKE) analyze
clean:
rm -f *~ core
cd libjbig && $(MAKE) clean
cd pbmtools && $(MAKE) clean
distribution:
rm -rf jbigkit-$(VERSION)
git archive v$(VERSION) --prefix jbigkit-$(VERSION)/ | tar xvf -
$(MAKE) -C jbigkit-$(VERSION)/pbmtools txt
tar cvaf jbigkit-$(VERSION).tar.gz jbigkit-$(VERSION)
release:
rsync -t jbigkit-$(VERSION).tar.gz $(HOME)/public_html/download/
rsync -t jbigkit-$(VERSION)/CHANGES $(HOME)/public_html/jbigkit/