aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-07-22 12:44:39 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-07-22 12:44:39 +0000
commit70e2fe5661f7651c20a696fcd48c09cfe63c6eb2 (patch)
tree90b993ac46327bc68a1dbf37aa521f394a398208
parentf84563a770e3dba2971f76231a628543ede6decb (diff)
downloaduserdrake-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--Makefile2
-rw-r--r--USER/Makefile.PL2
2 files changed, 1 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5104df1..2c0311d 100644
--- a/Makefile
+++ b/Makefile
@@ -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' ],