summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2008-07-12 06:41:10 +0300
committerGuillem Jover <guillem@hadrons.org>2008-07-12 07:39:22 +0300
commite42791d0d3e09848da10e2062f5e32d8b52effc7 (patch)
treee10a8b5b5ae488db8ba5ae32a051ec41456dc2ed
parent1e1ab1875895b432966686402ac3debd2b384256 (diff)
Move filename related variables to the beginning of the file
Switch them to single expanded varibles.
-rw-r--r--Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index a9008e8..52b469d 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,11 @@ LIB_VERSION_MAJOR = 0
LIB_VERSION_MINOR = 0
LIB_VERSION := $(LIB_VERSION_MAJOR).$(LIB_VERSION_MINOR)
+LIB_STATIC := $(LIB_NAME).a
+LIB_SHARED_SO := $(LIB_NAME).so
+LIB_SONAME := $(LIB_SHARED_SO).$(LIB_VERSION_MAJOR)
+LIB_SHARED := $(LIB_SONAME).$(LIB_VERSION_MINOR)
+
TAR_NAME := $(LIB_NAME)-$(LIB_VERSION)
TAR_FILE := $(TAR_NAME).tar.gz
@@ -32,12 +37,6 @@ LIB_MANS := $(patsubst %,man/%,$(LIB_MANS))
LIB_STATIC_OBJS = $(LIB_SRCS:%.c=%.o)
LIB_SHARED_OBJS = $(LIB_SRCS:%.c=%.lo)
-LIB_STATIC = $(LIB_NAME).a
-
-LIB_SHARED_SO = $(LIB_NAME).so
-LIB_SONAME = $(LIB_SHARED_SO).$(LIB_VERSION_MAJOR)
-LIB_SHARED = $(LIB_SONAME).$(LIB_VERSION_MINOR)
-
MK_CFLAGS = -Iinclude/ -include bsd/bsd.h -D_GNU_SOURCE -D__REENTRANT
libs: $(LIB_STATIC) $(LIB_SHARED_SO)