You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
569 B
34 lines
569 B
13 years ago
|
|
||
|
|
||
|
SHELL = /bin/sh
|
||
|
|
||
|
|
||
|
|
||
|
all:
|
||
|
perl -MExtUtils::Embed -e xsinit -- -o perlxsi.c
|
||
|
gcc -c perlxsi.c `perl -MExtUtils::Embed -e ccopts`
|
||
|
gcc -c perlnecklace.c `perl -MExtUtils::Embed -e ccopts`
|
||
|
gcc -Wall -Wpointer-arith -Wstrict-prototypes -o perlnecklace perlxsi.o perlnecklace.o `perl -MExtUtils::Embed -e ldopts`
|
||
|
chmod 4755 perlnecklace
|
||
|
|
||
|
.PHONY: clean clean-test clean-all
|
||
|
|
||
|
|
||
|
clean:
|
||
|
-rm perlnecklace
|
||
|
-rm perlnecklace.o
|
||
|
-rm perlxsi*
|
||
|
-rm testfile_*
|
||
|
|
||
|
clean-test:
|
||
|
-rm testfile_*
|
||
|
|
||
|
clean-all:
|
||
|
clean
|
||
|
clean-test
|
||
|
|
||
|
test-openfiles:
|
||
|
./perlnecklace -w test/openfiles.pl
|
||
|
|
||
|
|