Makefiles changed
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@208 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
parent
c69e82f23e
commit
c560bfd00b
|
|
@ -1,8 +1,8 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
LD = gcc
|
LD = gcc
|
||||||
RM = rm
|
RM = rm
|
||||||
CFLAGS = -c
|
CFLAGS = $(PackageFlags) -c
|
||||||
LDFLAS = -o
|
LDFLAS = $(PackageFlags) -o
|
||||||
LD_LIBS = -lm -lpq -lgd -lpng -lz -lfreetype
|
LD_LIBS = -lm -lpq -lgd -lpng -lz -lfreetype
|
||||||
#INCL = -I$$(pg_config --includedir)
|
#INCL = -I$$(pg_config --includedir)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
LD = gcc
|
LD = gcc
|
||||||
RM = rm
|
RM = rm
|
||||||
CFLAGS = -c
|
CFLAGS = $(PackageFlags) -c
|
||||||
LDFLAS = -o
|
LDFLAS = $(PackageFlags) -o
|
||||||
INCL = -I$$(pg_config --includedir)
|
INCL = -I$$(pg_config --includedir)
|
||||||
|
|
||||||
BIN_NAME = weather_checksensor
|
BIN_NAME = weather_checksensor
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
LD = gcc
|
LD = gcc
|
||||||
RM = rm
|
RM = rm
|
||||||
CFLAGS = -c
|
CFLAGS = $(PackageFlags) -c
|
||||||
LDFLAS = -o
|
LDFLAS = $(PackageFlags) -o
|
||||||
INCL = -I$$(pg_config --includedir)
|
INCL = -I$$(pg_config --includedir)
|
||||||
|
|
||||||
BIN_NAME = weatherdeamon
|
BIN_NAME = weatherdeamon
|
||||||
|
|
|
||||||
|
|
@ -18,13 +18,7 @@ export DH_OPTIONS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CFLAGS = -Wall -g
|
PackageFlags= -Wall -O3
|
||||||
|
|
||||||
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
||||||
CFLAGS += -O0
|
|
||||||
else
|
|
||||||
CFLAGS += -O2
|
|
||||||
endif
|
|
||||||
|
|
||||||
configure: configure-stamp
|
configure: configure-stamp
|
||||||
configure-stamp:
|
configure-stamp:
|
||||||
|
|
@ -41,7 +35,7 @@ build-arch: build-arch-stamp
|
||||||
build-arch-stamp: configure-stamp
|
build-arch-stamp: configure-stamp
|
||||||
|
|
||||||
# Add here commands to compile the arch part of the package.
|
# Add here commands to compile the arch part of the package.
|
||||||
$(MAKE)
|
$(MAKE) PackageFlags="$(PackageFlags)"
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
build-indep: build-indep-stamp
|
build-indep: build-indep-stamp
|
||||||
|
|
@ -83,7 +77,6 @@ install-arch:
|
||||||
# Add here commands to install the arch part of the package into
|
# Add here commands to install the arch part of the package into
|
||||||
# debian/tmp.
|
# debian/tmp.
|
||||||
$(MAKE) install DESTDIR=$(CURDIR)/debian/weatherstation
|
$(MAKE) install DESTDIR=$(CURDIR)/debian/weatherstation
|
||||||
|
|
||||||
dh_install -s --sourcedir debian/weatherstation/
|
dh_install -s --sourcedir debian/weatherstation/
|
||||||
# Must not depend on anything. This is to be called by
|
# Must not depend on anything. This is to be called by
|
||||||
# binary-arch/binary-indep
|
# binary-arch/binary-indep
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue