~ubuntu-branches/debian/lenny/libsepol/lenny

« back to all changes in this revision

Viewing changes to src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Russell Coker
  • Date: 2008-07-13 00:26:51 UTC
  • mfrom: (1.2.1 upstream) (3.1.3 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080713002651-ww7wa3wm1x30dyk3
Tags: 2.0.30-2
Added exec_prefix to libselinux.pc.
Closes: #489724

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
LIBSO=$(TARGET).$(LIBVERSION)
14
14
OBJS= $(patsubst %.c,%.o,$(wildcard *.c))
15
15
LOBJS= $(patsubst %.c,%.lo,$(wildcard *.c))
16
 
CFLAGS ?= -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute
 
16
CFLAGS ?= -Werror -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute
17
17
override CFLAGS += -I. -I../include -D_GNU_SOURCE
18
18
 
19
19
all: $(LIBA) $(LIBSO) $(LIBPC)
23
23
        ranlib $@
24
24
 
25
25
$(LIBSO): $(LOBJS)
26
 
        $(CC) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,$(LIBSO),--version-script=libsepol.map,-z,defs
 
26
        $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,$(LIBSO),--version-script=libsepol.map,-z,defs
27
27
        ln -sf $@ $(TARGET) 
28
28
 
29
29
$(LIBPC): $(LIBPC).in
51
51
        -rm -f $(OBJS) $(LOBJS) $(LIBA) $(LIBSO) $(TARGET) $(LIBPC)
52
52
 
53
53
indent:
54
 
        ../../Lindent $(wildcard *.[ch])
 
54
        ../../scripts/Lindent $(wildcard *.[ch])
55
55