~ubuntu-branches/ubuntu/trusty/grfcodec/trusty

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman
  • Date: 2010-04-04 14:11:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100404141122-quivy30l43ubuswe
Tags: 0.9.10+svn2306-1
* [60e6925] New upstream release 0.9.10+svn2306.
* [61f5b99] Add optional-upx.patch, making upx compression optional.
* [d9464d5] Disable UPX binary compression, it is not available on all
  platforms. (Closes: #576374)
* [27f8520] Don't Build-Depend on upx anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
CC = g++
23
23
CXX = g++
24
24
STRIP = strip
 
25
UPX = upx
25
26
AWK = awk
26
27
 
27
28
# OS detection: Cygwin vs Linux
219
220
        $(_E) [REBUILD] $(@:%_r=%)
220
221
        $(_C)rm -f $(@:%_r=%)
221
222
        $(_C)$(MAKE) ${_S} $(@:%_r=%)
222
 
        $(_E) [STRIP/UPX] $(@:%_r=%)
 
223
        $(_E) [STRIP] $(@:%_r=%)
223
224
        $(_C)$(STRIP)  $(@:%_r=%)
224
 
        $(_C)upx $(_Q) --best  $(@:%_r=%)
 
225
ifneq ($(UPX),)
 
226
        $(_E) [UPX] $(@:%_r=%)
 
227
        $(_C)$(UPX) $(_Q) --best  $(@:%_r=%)
 
228
endif
225
229
 
226
230
release: $(GRFCODEC)_r $(GRFDIFF)_r $(GRFMERGE)_r
227
231
 
230
234
        $(_C)rm -f $@
231
235
        $(_E) [LD] $@
232
236
        $(_C)$(CC) -o $@ $(CFLAGS) -Os $^
233
 
        $(_E) [STRIP/UPX] $@
 
237
        $(_E) [STRIP] $@
234
238
        $(_C)$(STRIP) $@
235
 
        $(_C)upx $(_Q) --best $@
 
239
ifneq ($(UPX),)
 
240
        $(_E) [UPX] $@
 
241
        $(_C)$(UPX) $(_Q) --best $@
 
242
endif
236
243
 
237
244
grfmrg.c:       grfmrgc.bin grfmrgc.pl
238
245
        $(_E) [PERL] $@