Last change
on this file since 1211 was 235, checked in by bcornec, 19 years ago |
- fix bug in install process of parted2fdisk (Wolfgang Rosenauer)
- remove superfluous extraction of symlinks in install.sh (Wolfgang Rosenauer)
- no specific busybox binaries for x86_64 for the moment (Wolfgang Rosenauer)
- some cleanup done better (Wolfgang Rosenauer)
- fix bugs in install.sh using /usr/local PREFIX and modes (Jeff Vian)
|
-
Property svn:keywords
set to
Id
|
File size:
595 bytes
|
Rev | Line | |
---|
[1] | 1 | ARCH=$(shell /bin/arch | sed 's/686/386/')
|
---|
| 2 | PRG=parted2fdisk
|
---|
[5] | 3 | PERLV=$(shell perl -v | grep 'perl,' | awk '{print $$4}' | cut -c2-)
|
---|
| 4 | PERLA=$(shell perl -v | grep 'perl,' | awk '{print $$7}')
|
---|
| 5 | PERLBASE=/usr/lib/perl5/$(PERLV)/$(PERLA)
|
---|
[1] | 6 | PERLINC=$(PERLBASE)/CORE
|
---|
| 7 | PERLLIB=$(PERLBASE)/auto/DynaLoader/DynaLoader.a
|
---|
| 8 | SUB=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 |
|
---|
| 16 | clean:
|
---|
| 17 | rm -f $(PRG) $(PRG).c
|
---|
| 18 |
|
---|
| 19 | install: $(PRG)
|
---|
[235] | 20 | cp -a $(PRG) $(DEST)/$(SUB)/$(PRG)-$(ARCH)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.