summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-27 21:38:48 +0000
committerqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-27 21:38:48 +0000
commitae208f48dd39690ca18f5cd788af2200eb182297 (patch)
tree5e494b945336cffed7ddd4e333448cd275904ab3 /Makefile
parentaf28ed5d71d940d7db7257177a176a202409ede1 (diff)
Make sure we build the static version of libtonezone
(and as a side-effect, all of the programs) with -fPIC git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2962 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 234770f..2a19499 100644
--- a/Makefile
+++ b/Makefile
@@ -108,7 +108,7 @@ HOSTCC=gcc
INSTALL_PREFIX := /usr
-CFLAGS+=-I. -O4 -g -Wall
+CFLAGS+=-I. -O4 -g -fPIC -Wall
ifneq (,$(findstring ppc,$(MACHINE)))
CFLAGS += -fsigned-char
KFLAGS += -msoft-float -fsigned-char
@@ -117,7 +117,6 @@ ifneq (,$(findstring x86_64,$(MACHINE)))
CFLAGS += -m64
KFLAGS += -mcmodel=kernel
endif
-LCFLAGS:=-fPIC $(CFLAGS) -DBUILDING_TONEZONE
KFLAGS:=-I$(KINCLUDES) -O6
KFLAGS+=-DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I$(KSRC)/drivers/net \
-Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I$(KSRC)/drivers/net/wan -I$(KINCLUDES)/net
@@ -285,7 +284,7 @@ $(filter-out zaptel.o,$(MODULESO)) zaptel-base.o: %.o: %.c
$(CC) $(KFLAGS) -o $@ -c $<
zonedata.lo tonezone.lo: %.lo: %.c
- $(CC) -c $(LCFLAGS) -o $@ $^
+ $(CC) -c $(CFLAGS) -o $@ $^
tones.h: gendigits
./gendigits > $@