2008-08-19 21:30:36 +02:00
|
|
|
#
|
|
|
|
# Makefile for building the dispol program
|
|
|
|
#
|
2021-07-06 19:54:22 +02:00
|
|
|
CFLAGS ?= -g -Wall -W -Werror -O2
|
2008-08-19 21:30:36 +02:00
|
|
|
|
2018-02-14 10:57:06 +01: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 21:30:36 +02:00
|
|
|
all: dispol dismod
|
|
|
|
|
2017-01-14 15:38:25 +01:00
|
|
|
dispol: dispol.o $(LIBSEPOLA)
|
2021-07-06 19:54:21 +02:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS_LIBSEPOLA)
|
2008-08-19 21:30:36 +02:00
|
|
|
|
2017-01-14 15:38:25 +01:00
|
|
|
dismod: dismod.o $(LIBSEPOLA)
|
2021-07-06 19:54:21 +02:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS_LIBSEPOLA)
|
2008-08-19 21:30:36 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f dispol dismod *.o
|