Line | |
---|
1 | ARCH=$(shell /bin/arch | sed 's/686/386/')
|
---|
2 | PRG=parted2fdisk
|
---|
3 | PERLV=5.8.0
|
---|
4 | PERLBASE=/usr/lib/perl5/$(PERLV)/$(ARCH)-linux-thread-multi
|
---|
5 | PERLINC=$(PERLBASE)/CORE
|
---|
6 | PERLLIB=$(PERLBASE)/auto/DynaLoader/DynaLoader.a
|
---|
7 | SUB=rootfs/sbin
|
---|
8 |
|
---|
9 | $(PRG): $(PRG).c
|
---|
10 | $(CC) -O -static -s -I$(PERLINC) -o $(PRG) $(PRG).c -L$(PERLINC) -lperl -lm -lcrypt $(PERLLIB) -lpthread -ldl
|
---|
11 |
|
---|
12 | $(PRG).c: $(PRG).pl
|
---|
13 | perlcc $(PRG).pl -c -o $(PRG).c
|
---|
14 |
|
---|
15 | clean:
|
---|
16 | rm -f $(PRG) $(PRG).c
|
---|
17 |
|
---|
18 | install: $(PRG)
|
---|
19 | cp -a $(PRG) $(DEST)$(SUB)/$(PRG)-$(ARCH)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.