diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2010-07-22 12:44:39 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2010-07-22 12:44:39 +0000 |
commit | 70e2fe5661f7651c20a696fcd48c09cfe63c6eb2 (patch) | |
tree | 90b993ac46327bc68a1dbf37aa521f394a398208 | |
parent | f84563a770e3dba2971f76231a628543ede6decb (diff) | |
download | userdrake-70e2fe5661f7651c20a696fcd48c09cfe63c6eb2.tar userdrake-70e2fe5661f7651c20a696fcd48c09cfe63c6eb2.tar.gz userdrake-70e2fe5661f7651c20a696fcd48c09cfe63c6eb2.tar.bz2 userdrake-70e2fe5661f7651c20a696fcd48c09cfe63c6eb2.tar.xz userdrake-70e2fe5661f7651c20a696fcd48c09cfe63c6eb2.zip |
define PACKAGE_NAME in USER/Makefile.PL, it is useless in top Makefile
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | USER/Makefile.PL | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -14,8 +14,6 @@ SBINREL = ../sbin SUBDIRS = po localedir = $(prefix)/usr/share/locale -override CFLAGS += -DPACKAGE=\"$(NAME)\" -DPACKAGE_NAME=\"$(NAME)\" -DLOCALEDIR=\"$(localedir)\" - all: userdrake for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done diff --git a/USER/Makefile.PL b/USER/Makefile.PL index d847317..1b8d5fa 100644 --- a/USER/Makefile.PL +++ b/USER/Makefile.PL @@ -11,7 +11,7 @@ WriteMakefile( 'VERSION_FROM' => 'USER.pm', 'OBJECT' => 'USER.o', # link all the C files too 'LIBS' => "$libs", # e.g., '-lm' - 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' + 'DEFINE' => '-DPACKAGE_NAME=userdrake', # e.g., '-DHAVE_SOMETHING' 'INC' => "`pkg-config --cflags libuser`", # e.g., '-I. -I/usr/include/other' 'XSPROTOARG' => '-noprototypes', 'TYPEMAPS' => ['../perlobject.map' ], |