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