Ubuntu Pastebin

Paste from maslen at Sun, 26 Apr 2015 21:02:41 +0000

Download as text
  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
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
user@ubuntu15:~/jbigkit-2.1$ make
cd libjbig && make -e
make[1]: Entering directory '/home/user/jbigkit-2.1/libjbig'
gcc -O2 -W -Wno-unused-result   -c -o jbig.o jbig.c
Assembler messages:
Error: can't open /tmp/ccY2ZprU.s for reading: No such file or directory
<builtin>: recipe for target 'jbig.o' failed
make[1]: *** [jbig.o] Error 1
make[1]: Leaving directory '/home/user/results/crashers/e91e33337f2a2e2b2f4a4933b8899504/jbigkit-2.1/libjbig'
Makefile:18: recipe for target 'lib' failed
make: *** [lib] Error 2

Makefile:
# Unix makefile for JBIG-KIT

# Select an ANSI/ISO C compiler here, GNU gcc is recommended
CC = gcc

# Options for the compiler: A high optimization level is suggested
CFLAGS = -O2 -W -Wno-unused-result
# 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/


Second Makefile:

# Unix makefile for the JBIG-KIT library

# Select an ANSI/ISO C compiler here, GNU gcc is recommended
CC = gcc

# Options for the compiler: A high optimization level is suggested
CFLAGS = -g -O -W -Wall -ansi -pedantic # --coverage

all: libjbig.a libjbig85.a tstcodec tstcodec85

tstcodec: tstcodec.o jbig.o jbig_ar.o
	$(CC) $(CFLAGS) -o tstcodec tstcodec.o jbig.o jbig_ar.o

tstcodec85: tstcodec85.o jbig85.o jbig_ar.o
	$(CC) $(CFLAGS) -o tstcodec85 tstcodec85.o jbig85.o jbig_ar.o

libjbig.a: jbig.o jbig_ar.o
	rm -f libjbig.a
	ar rc libjbig.a jbig.o jbig_ar.o
	-ranlib libjbig.a

libjbig85.a: jbig85.o jbig_ar.o
	rm -f libjbig85.a
	ar rc libjbig85.a jbig85.o jbig_ar.o
	-ranlib libjbig85.a

jbig.o: jbig.c jbig.h jbig_ar.h
jbig85.o: jbig85.c jbig85.h jbig_ar.h
jbig_ar.o: jbig_ar.c jbig_ar.h
tstcodec.o: tstcodec.c jbig.h
tstcodec85.o: tstcodec85.c jbig85.h

update-po: jbig.c jbig85.c Makefile
	xgettext -ojbig.pot -k_ \
	  --copyright-holder='Markus Kuhn' \
	  --msgid-bugs-address='http://www.cl.cam.ac.uk/~mgk25/jbigkit/' \
	  --package-name jbigkit \
	jbig.c jbig85.c
	cd po && for po in *.po ; do \
	  msgmerge --update $$po ../jbig.pot ; done

analyze:
	clang --analyze *.c

test: tstcodec tstcodec85
	./tstcodec
	./tstcodec85

t82test.pbm: tstcodec
	./tstcodec $@

clean:
	rm -f *.o *.gcda *.gcno *.gcov *.plist *~ core gmon.out dbg_d\=??.pbm
	rm -f t82test.pbm
	rm -f tstcodec tstcodec85
Download as text