[SR-Dev] git:master: perl(k): fixed makefile

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Apr 22 17:42:44 CEST 2009


Module: sip-router
Branch: master
Commit: bd3e028334907c3622e1537d337a9938ed355060
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bd3e028334907c3622e1537d337a9938ed355060

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Wed Apr 22 17:42:47 2009 +0200

perl(k): fixed makefile

---

 modules_k/perl/Makefile |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/modules_k/perl/Makefile b/modules_k/perl/Makefile
index dd08d96..de68dc4 100644
--- a/modules_k/perl/Makefile
+++ b/modules_k/perl/Makefile
@@ -6,7 +6,7 @@
 # WARNING: do not run this directly, it should be run by the master Makefile
 
 include ../../Makefile.defs
-auto_gen=
+auto_gen=openserxs.c
 NAME=perl.so
 LIBS=
 
@@ -26,7 +26,6 @@ DEFS+=-DOPENSER_MOD_INTERFACE
 
 SERLIBPATH=../../lib
 SER_LIBS+=$(SERLIBPATH)/kmi/kmi
-include ../../Makefile.modules
 
 PODFILES=openserxs.xs `find lib/perl -name *.pm`
 
@@ -37,21 +36,16 @@ ifeq ($(TYPEMAP),)
 	TYPEMAP=$(PERLLIBPATH)/ExtUtils/typemap
 endif
 
+include ../../Makefile.modules
+
 perl.d: openserxs.o
 perl.o: perl.c openserxs.o
 
-openserxs.o: openserxs.c openserxs.d
-	$(CC) $(MOD_CFLAGS) -Wno-unused $(DEFS) -c -o openserxs.o openserxs.c
+openserxs.o: CFLAGS+=-Wno-unused
 
 openserxs.c: openserxs.xs typemap
 	xsubpp -typemap $(TYPEMAP) -typemap typemap openserxs.xs > openserxs.c
 
-clean:	clean-special
-
-.PHONY: clean-special
-clean-special:
-	rm -f openserxs.c openserxs.o openserxs.d
-
 .PHONY: perlpod
 perlpod: doc/perl_pod.sgml
 




More information about the sr-dev mailing list