source: MondoRescue/trunk/mindi/Makefile.parted2fdisk@ 779

Last change on this file since 779 was 236, checked in by bcornec, 18 years ago

merge -r229:235 $SVN_M/branches/2.05

  • Property svn:keywords set to Id
File size: 595 bytes
Line 
1ARCH=$(shell /bin/arch | sed 's/686/386/')
2PRG=parted2fdisk
3PERLV=$(shell perl -v | grep 'perl,' | awk '{print $$4}' | cut -c2-)
4PERLA=$(shell perl -v | grep 'perl,' | awk '{print $$7}')
5PERLBASE=/usr/lib/perl5/$(PERLV)/$(PERLA)
6PERLINC=$(PERLBASE)/CORE
7PERLLIB=$(PERLBASE)/auto/DynaLoader/DynaLoader.a
8SUB=rootfs/sbin
9
10$(PRG): $(PRG).c
11 $(CC) -O -static -s -I$(PERLINC) -o $(PRG) $(PRG).c -L$(PERLINC) -lperl -lm -lcrypt $(PERLLIB) -lpthread -ldl
12
13$(PRG).c: $(PRG).pl
14 perlcc $(PRG).pl -c -o $(PRG).c
15
16clean:
17 rm -f $(PRG) $(PRG).c
18
19install: $(PRG)
20 cp -a $(PRG) $(DEST)/$(SUB)/$(PRG)-$(ARCH)
Note: See TracBrowser for help on using the repository browser.