2008-08-19 19:30:36 +00:00
|
|
|
#
|
|
|
|
# Makefile for building the dispol program
|
|
|
|
#
|
2011-11-02 20:22:28 +00:00
|
|
|
CFLAGS ?= -g -Wall -W -Werror -O2 -pipe
|
2008-08-19 19:30:36 +00:00
|
|
|
|
2018-02-14 09:57:06 +00:00
|
|
|
# If no specific libsepol.a is specified, fall back on LDFLAGS search path
|
|
|
|
# Otherwise, as $(LIBSEPOLA) already appears in the dependencies, there
|
|
|
|
# is no need to define a value for LDLIBS_LIBSEPOLA
|
|
|
|
ifeq ($(LIBSEPOLA),)
|
|
|
|
LDLIBS_LIBSEPOLA := -l:libsepol.a
|
|
|
|
endif
|
|
|
|
|
2008-08-19 19:30:36 +00:00
|
|
|
all: dispol dismod
|
|
|
|
|
2017-01-14 14:38:25 +00:00
|
|
|
dispol: dispol.o $(LIBSEPOLA)
|
2018-02-14 09:57:06 +00:00
|
|
|
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS_LIBSEPOLA)
|
2008-08-19 19:30:36 +00:00
|
|
|
|
2017-01-14 14:38:25 +00:00
|
|
|
dismod: dismod.o $(LIBSEPOLA)
|
2018-02-14 09:57:06 +00:00
|
|
|
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS_LIBSEPOLA)
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f dispol dismod *.o
|