Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 236030
Collapse All | Expand All

(-)sam2p-0.45/Makefile (-37 / +37 lines)
Lines 84-130 L1_FLAGS=-DCFG_FMT_ZLIB_ONLY=1 -DNDEBUG= Link Here
84
TTT_QUOTE=perl -e '$$s=$$_=join"",<STDIN>; $$s=~s@([()\\])@\\$$1@g; die if $$ARGV[0]!~/^(\w+)/; print "\n% TTT_QUOTE\n/$$1 ($$s)\n\n"' --
84
TTT_QUOTE=perl -e '$$s=$$_=join"",<STDIN>; $$s=~s@([()\\])@\\$$1@g; die if $$ARGV[0]!~/^(\w+)/; print "\n% TTT_QUOTE\n/$$1 ($$s)\n\n"' --
85
# vvv Dat: input file for `g++ -E' must have .h extension
85
# vvv Dat: input file for `g++ -E' must have .h extension
86
l1g8z.pst: l1zip.psm psmlib.psm ps_tiny
86
l1g8z.pst: l1zip.psm psmlib.psm ps_tiny
87
	<$< >tmp.h perl -pe0
87
	<$< >$@.tmp.h perl -pe0
88
	$(CXX) -E $(L1_FLAGS) -DUSE_A85D=1 tmp.h >tmp.i
88
	$(CXX) -E $(L1_FLAGS) -DUSE_A85D=1 $@.tmp.h >$@.tmp.i
89
	<tmp.i >tmp.pin $(PREPROC_STRIP)
89
	<$@.tmp.i >$@.tmp.pin $(PREPROC_STRIP)
90
	<tmp.pin >tmp.ps0 ./ps_tiny
90
	<$@.tmp.pin >$@.tmp.ps0 ./ps_tiny
91
	<tmp.ps0 >tmp.pst $(TTT_QUOTE) $@
91
	<$@.tmp.ps0 >$@.tmp.pst $(TTT_QUOTE) $@
92
	mv -f tmp.pst $@
92
	mv -f $@.tmp.pst $@
93
l1ghz.pst: l1zip.psm psmlib.psm ps_tiny
93
l1ghz.pst: l1zip.psm psmlib.psm ps_tiny
94
	<$< >tmp.h perl -pe0
94
	<$< >$@.tmp.h perl -pe0
95
	$(CXX) -E $(L1_FLAGS) -DUSE_HEXD=1 tmp.h >tmp.i
95
	$(CXX) -E $(L1_FLAGS) -DUSE_HEXD=1 $@.tmp.h >$@.tmp.i
96
	<tmp.i >tmp.pin $(PREPROC_STRIP)
96
	<$@.tmp.i >$@.tmp.pin $(PREPROC_STRIP)
97
	<tmp.pin >tmp.ps0 ./ps_tiny
97
	<$@.tmp.pin >$@.tmp.ps0 ./ps_tiny
98
	<tmp.ps0 >tmp.pst $(TTT_QUOTE) $@
98
	<$@.tmp.ps0 >$@.tmp.pst $(TTT_QUOTE) $@
99
	mv -f tmp.pst $@
99
	mv -f $@.tmp.pst $@
100
l1gbz.pst: l1zip.psm psmlib.psm ps_tiny
100
l1gbz.pst: l1zip.psm psmlib.psm ps_tiny
101
	<$< >tmp.h perl -pe0
101
	<$< >$@.tmp.h perl -pe0
102
	$(CXX) -E $(L1_FLAGS) -DUSE_BINARY=1 tmp.h >tmp.i
102
	$(CXX) -E $(L1_FLAGS) -DUSE_BINARY=1 $@.tmp.h >$@.tmp.i
103
	<tmp.i >tmp.pin $(PREPROC_STRIP)
103
	<$@.tmp.i >$@.tmp.pin $(PREPROC_STRIP)
104
	<tmp.pin >tmp.ps0 ./ps_tiny
104
	<$@.tmp.pin >$@.tmp.ps0 ./ps_tiny
105
	<tmp.ps0 >tmp.pst $(TTT_QUOTE) $@
105
	<$@.tmp.ps0 >$@.tmp.pst $(TTT_QUOTE) $@
106
	mv -f tmp.pst $@
106
	mv -f $@.tmp.pst $@
107
l1g8l.pst: l1lzw.psm psmlib.psm ps_tiny
107
l1g8l.pst: l1lzw.psm psmlib.psm ps_tiny
108
	<$< >tmp.h perl -pe0
108
	<$< >$@.tmp.h perl -pe0
109
	$(CXX) -E $(L1_FLAGS) -DUSE_A85D=1 tmp.h >tmp.i
109
	$(CXX) -E $(L1_FLAGS) -DUSE_A85D=1 $@.tmp.h >$@.tmp.i
110
	<tmp.i >tmp.pin $(PREPROC_STRIP)
110
	<$@.tmp.i >$@.tmp.pin $(PREPROC_STRIP)
111
	<tmp.pin >tmp.ps0 ./ps_tiny
111
	<$@.tmp.pin >$@.tmp.ps0 ./ps_tiny
112
	<tmp.ps0 >tmp.pst $(TTT_QUOTE) $@
112
	<$@.tmp.ps0 >$@.tmp.pst $(TTT_QUOTE) $@
113
	mv -f tmp.pst $@
113
	mv -f $@.tmp.pst $@
114
l1ghl.pst: l1lzw.psm psmlib.psm ps_tiny
114
l1ghl.pst: l1lzw.psm psmlib.psm ps_tiny
115
	<$< >tmp.h perl -pe0
115
	<$< >$@.tmp.h perl -pe0
116
	$(CXX) -E $(L1_FLAGS) -DUSE_HEXD=1 tmp.h >tmp.i
116
	$(CXX) -E $(L1_FLAGS) -DUSE_HEXD=1 $@.tmp.h >$@.tmp.i
117
	<tmp.i >tmp.pin $(PREPROC_STRIP)
117
	<$@.tmp.i >$@.tmp.pin $(PREPROC_STRIP)
118
	<tmp.pin >tmp.ps0 ./ps_tiny
118
	<$@.tmp.pin >$@.tmp.ps0 ./ps_tiny
119
	<tmp.ps0 >tmp.pst $(TTT_QUOTE) $@
119
	<$@.tmp.ps0 >$@.tmp.pst $(TTT_QUOTE) $@
120
	mv -f tmp.pst $@
120
	mv -f $@.tmp.pst $@
121
l1gbl.pst: l1lzw.psm psmlib.psm ps_tiny
121
l1gbl.pst: l1lzw.psm psmlib.psm ps_tiny
122
	<$< >tmp.h perl -pe0
122
	<$< >$@.tmp.h perl -pe0
123
	$(CXX) -E $(L1_FLAGS) -DUSE_BINARY=1 tmp.h >tmp.i
123
	$(CXX) -E $(L1_FLAGS) -DUSE_BINARY=1 $@.tmp.h >$@.tmp.i
124
	<tmp.i >tmp.pin $(PREPROC_STRIP)
124
	<$@.tmp.i >$@.tmp.pin $(PREPROC_STRIP)
125
	<tmp.pin >tmp.ps0 ./ps_tiny
125
	<$@.tmp.pin >$@.tmp.ps0 ./ps_tiny
126
	<tmp.ps0 >tmp.pst $(TTT_QUOTE) $@
126
	<$@.tmp.ps0 >$@.tmp.pst $(TTT_QUOTE) $@
127
	mv -f tmp.pst $@
127
	mv -f $@.tmp.pst $@
128
# vvv copy the .ttt, not the .tth
128
# vvv copy the .ttt, not the .tth
129
#     The perl program down there is a portable cat(1) implementation.
129
#     The perl program down there is a portable cat(1) implementation.
130
bts1.ttt: bts.ttt $(L1_LIST)
130
bts1.ttt: bts.ttt $(L1_LIST)
Lines 133-139 bts2.ttt: bts1.ttt ps_tiny Link Here
133
	./ps_tiny --copy <$< >$@
133
	./ps_tiny --copy <$< >$@
134
134
135
clean:
135
clean:
136
	rm -f *~ a.out DEADJOE core *.o *.tth .rgd *.rgd tmp.pin tmp.i tmp.ps0 tmp.h tmp.pst autom4te.cache/*
136
	rm -f *~ a.out DEADJOE core *.o *.tth .rgd *.rgd *.tmp.pin *.tmp.i *.tmp.ps0 *.tmp.h *.tmp.pst autom4te.cache/*
137
	rm -f debian/changelog.dch debian/*~ 
137
	rm -f debian/changelog.dch debian/*~ 
138
	rm -f $(ALL) $(ALL:=.yes) $(ALL:=.no) $(ALL:=.assert) $(ALL:=.checker)
138
	rm -f $(ALL) $(ALL:=.yes) $(ALL:=.no) $(ALL:=.assert) $(ALL:=.checker)
139
	-rmdir -- autom4te.cache
139
	-rmdir -- autom4te.cache

Return to bug 236030