File: modules-common.mk

package info (click to toggle)
umview 0.8.2-1.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,472 kB
  • sloc: ansic: 67,309; sh: 11,160; ruby: 914; makefile: 424; python: 141
file content (41 lines) | stat: -rw-r--r-- 886 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
DEBUGLEVEL = 3

moddir = $(pkglibdir)/modules


CBASEFLAGS =
CDEBUGFLAGS = -g3 -ggdb3

CPPBASEFLAGS = -I../include -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
CPPDEBUGFLAGS = -DGDEBUG_ENABLED -DGDEBUG_LEVEL=$(DEBUGLEVEL)

if ENABLE_DEBUG
CFULLFLAGS = $(CBASEFLAGS) $(CDEBUGFLAGS)
CPPFULLFLAGS = $(CPPBASEFLAGS) $(CPPDEBUGFLAGS)

release: clean
	$(MAKE) CFULLFLAGS='$(CBASEFLAGS)' CPPFULLFLAGS='$(CPPBASEFLAGS)'

debug: all
else
CFULLFLAGS = $(CBASEFLAGS)
CPPFULLFLAGS = $(CPPBASEFLAGS)

release: all

debug: clean
	$(MAKE) CFULLFLAGS='$(CBASEFLAGS) $(CDEBUGFLAGS)' CPPFULLFLAGS='$(CPPBASEFLAGS) $(CPPDEBUGFLAGS)'
endif

AM_CFLAGS = $(CFULLFLAGS)
AM_CPPFLAGS = $(CPPFULLFLAGS)
AM_LDFLAGS = -module -avoid-version -export-dynamic
AM_LIBTOOLFLAGS = --tag=disable-static
LIBS = ../um_lib/libumlib.la

install-data-hook:
	cd "$(DESTDIR)/$(moddir)" && rm -f $(mod_LTLIBRARIES)

debug release: all